delete
The stackgen appstack delete
command allows you to remove an appStack that is no longer needed from the system. This permanently deletes the appStack and all its associated resources from the StackGen platform.
Usage
stackgen appstack delete [appstack-uuid] [flags]
Flags
Flag | Description |
---|---|
--uuid string | UUID of appstack to delete, use 'stackgen appstack show' to get UUIDs of appstacks |
-y, --yes | Skip confirmation prompt and proceed with the deletion |
-h, --help | Help for delete |
Examples
Delete an appStack by ID
stackgen appstack delete 12345-uuid
This command will:
- Prompt for confirmation before deleting the appStack with ID "12345-uuid"
- Remove the appStack and all associated data from the system after confirmation
Delete an appStack by specifying the UUID with the flag
stackgen appstack delete --uuid 12345-uuid
This command will:
- Prompt for confirmation before deleting the appStack with the specified UUID
- Remove the appStack and all associated data from the system after confirmation
Force delete an appStack without confirmation
stackgen appstack delete 12345-uuid -y
This command will:
- Delete the appStack with ID "12345-uuid" without asking for confirmation
- Remove the appStack and all associated data from the system immediately
note
- Deleting an appStack does not affect any infrastructure that has already been provisioned using this appStack
- This action cannot be undone, so use it with caution
- If you need to retain a record of the appStack configuration, consider exporting the IaC files using
download-iac
before deletion - Use
stackgen appstack show
to list available appStacks and their UUIDs