Delete Application
The delete command permanently deletes your ZeyOS application from the current instance.
Bash
zeysdk delete [options]
Options
| Option | Description |
|---|---|
-f, --force | Skip deletion confirmation prompt |
--verbose | Show detailed output |
Process
-
Validation
- Checks that the command runs inside a linked app
- Loads
.zeysdk/sync.json - Verifies required instance and app identifiers
-
Confirmation
- Prompts before deleting the remote application
- Stops when deletion is not confirmed
- Uses verbose output for additional progress details
-
Deletion
- Sends the delete request to the current instance
- Removes the application from the platform
- Reports the final deletion result
Examples
Bash
zeysdk delete
zeysdk delete --force
zeysdk delete --verbose
Error Handling
| Error | Description | Resolution |
|---|---|---|
| Missing sync.json | sync.json file not found | Ensure you are in an app directory |
| Invalid sync.json | Missing required keys | Verify sync.json has id and url |
| API error | Server communication failed | Check connection and permissions |
Warning
Delete permanently removes the application from the current instance.
Notes
- Delete acts on the currently linked instance
- Local files are not a substitute for a remote backup
- Use
zeysdk whoamibefore deleting if you are unsure which instance is active - Consider
zeysdk predeletewhen you need a reversible operational state first --forceskips confirmation and should be used carefully
Best Practices
- Create a snapshot before destructive changes
- Confirm the active instance before deleting
- Notify affected users before removing production apps
- Keep a record of the app ID and instance for audit purposes