Deleting the Application and Virtual Machine
We can delete our application once we no longer need it.
Command Line Interface
First, we need to connect to the virtual machine, stop the Genie application and Nginx, and then unmount the persistent storage volume.
sudo umount /dev/vdbThen, let's disconnect from the virtual machine. Now, we can detach the persistent storage from the virtual machine.
openstack server remove volume $SERVER_NAME $VOLUME_NAMENext, we can remove the virtual machine.
openstack server delete $SERVER_NAMEFinally, we can remove the floating IP.
openstack floating ip delete $FLOATING_IPAdditionally, we can remove the persistent storage. Removing the persistent storage will destroy the database and logs.
openstack volume delete $VOLUME_NAMENow, we have deleted the application and virtual machine.