To delete a Data Image you can use the
delete command. You cannot delete Data Images that have Data Containers.
$ spawnctl delete data-image <ImageName[:Tag]_Or_ImageID>
In this tutorial we will create a Data Image and delete it.
As a prerequisite you should've followed the instructions to install spawnctl
Identify the Data Image you plan to delete.
$ spawnctl get data-images NAME IMAGE ID ENGINE STATUS MESSAGE CREATED dev 10001 PostgreSQL 2 Created 2 minutes ago
In this case we want to delete the Data Image
Run the delete command to remove the Data Image.
$ spawnctl delete data-image 10001 Deleting image.... 10001
You can verify the Data Image was deleted by running the following command.
$ spawnctl get data-images No resources found.