Skip to main content
⏳ Estimated read time: 2 min read

delete

The stackgen appstack delete command removes an appStack you no longer need. This permanently deletes the appStack and its metadata in StackGen.

Usage

stackgen appstack delete [appstack-id] [flags]

You can pass the appStack id as a positional argument or with --appstack-id.

Flags

FlagDescription
--appstack-id stringID of the appStack to delete. Use stackgen appstack list, show, or ls for ids.
-y, --yesSkip confirmation prompt and proceed with the deletion.
-h, --helpHelp 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-id 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-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, export IaC with download-iac before deletion.
  • Use stackgen appstack list, show, or ls to list appStacks and ids.