stk-legacy delete template
Description
The stk-legacy delete template
command removes Templates in a Stack project.
How does it work?
You need to submit the change to GitHub via the git push
command.
By running the stk-legacy delete template <name-template>
command in your Stack, your Template folder, and your submodule settings (if using) from the repository will be removed.
Parameters
The command's syntax is: stk-legacy delete template [OPTIONS] TEMPLATE-FOLDER
.
Check the available options in the command:
Parameter | Description |
---|---|
TEMPLATE-FOLDER | It is the Template folder that represents the Template that will be removed from the Stack. |
--repo-path | Allows you to execute the command from outside your Stack. The format is stk-legacy delete template <name-template> --repo-path <stack-path> . |
Examples
The example below shows how to remove the `my-template`` Template from the my-stack
Stack.
- Navigate to the Stack folder that contains the Template to remove:
cd my-stack
- In this stack, the delete command was executed:
stk-legacy delete template my-template
And the return will be:
- template my-template deleted from <path-your-stack>.
> Now, you can run a git push command to effectively remove from remote repository.
Check out the execution below:
Read more
Was this page helpful?