Skip to main content
Version: v4.5.0

Description

The stk-legacy delete stack command removes a Stack previously imported with the stk-legacy import stack command.

How does it work?

When you run the stk-legacy delete stack <name-stack> command, the imported Stack will be removed from the user's machine, but the projects won't be affected.

The command syntax is: stk-legacy delete stack <name-stack>.

When you execute the command, the imported Stack will be removed from the user's machine, but the projects won't be affected.

Examples

The example below shows how to remove the my-template Stack from the my-stack Stack.

  1. The Stacks will be listed in any directory.
stk-legacy list stack
  1. Check the current Stacks list:
+---------------------+---------------------------------+
| name | description |
+---------------------+---------------------------------+
| stack-hello-stacker | Stack Hello Stacker Description |
+---------------------+---------------------------------+
  1. Stack with the name stack-hello-stacker will be removed.
stk-legacy delete stack stack-hello-stacker
  1. A message is displayed confirming the Stack removal:
- Stack stack-hello-stacker removed from path /home/stackspot/.stk/plugins/stack-hello-stacker
  1. You can list the Stacks again and confirm if the Stack was removed.
stk-legacy list stack
> No stacks found

See below:

Read more

Was this page helpful?