Nifectl Destroy Command Guide
The Nifectl Destroy command is used to permanently delete an application from the Nife platform. This command helps you clean up unused resources and maintain a well-organized deployment environment.
Overview
Use this comand when you want to completely remove an application, its associated resources, and configurations from the platform. The command supports confirmation flags to prevent accidental deletion.
⚠️ Warning: This action is irreversible. Once an app is destroyed, its data and configurations cannot be recovered.
Usage
nifectl destroy [APPNAME] [flags]
Options
-a, --app string App name to operate on
-c, --config string Path to an app config file or directory containing one (default "./nife.toml")
-h, --help Help for destroy
-y, --yes Accept all confirmations automatically
Global Options
-t, --access-token string Nife API Access Token
-j, --json JSON output format
Best Practices
- Use the
--yesflag only when running automated scripts to avoid manual confirmation prompts. - Always verify the app name before executing this command to prevent accidental deletions.
- Regularly clean up unused applications to optimize platform performance and reduce costs.
See Also
nifectl– The Nife CLI main command for managing deployments and configurations.
Summary
The Nifectl Destroy command provides a controlled way to remove applications from the Nife platform. It ensures complete cleanup of resources and helps maintain an organized deployment environment. Use it carefully to manage your app lifecycle effectively.