delete
Text size
delete
The stackgen appstack delete command is used to remove an appStack you no longer need. This permanently deletes the appStack and its metadata in StackGen.
Usage
stackgen appstack delete [appstack] [flags]
You can pass the appStack UUID or name as a positional argument or with --appstack.
Flags
| Flag | Description |
|---|---|
--appstack string | AppStack UUID or name to delete. Use stackgen appstack list, show, or ls. |
-y, --yes | Skip confirmation prompt and proceed with the deletion. |
-h, --help | Help for delete. |
Global flags (--interactive, --log, --output, --project, --stackgen-home) apply. See Global CLI flags.
Examples
Delete an appStack by positional 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 using the flag
stackgen appstack delete --appstack 12345-uuid
This command will:
- Prompt for confirmation before deleting the appStack with the specified id.
- 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-uuidwithout 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, export IaC with
download-iacbefore deletion. - Use
stackgen appstack list,show, orlsto list appStacks and ids.