Pre-delete Application
The predelete command marks your ZeyOS application for future deletion in the current instance, preparing it for removal.
Bash
zeysdk predelete [options]
Options
| Option | Description |
|---|---|
--verbose | Show detailed output |
Process
-
Validation
- Checks app context
- Verifies configuration
- Validates permissions
-
Pre-deletion
- Sets app activity to pre-deleted
- Updates platform state
- Confirms status change
-
Follow-up
- Leaves the application installed
- Keeps application data available for recovery workflows
- Allows reactivation when deletion is cancelled
Error Handling
| Error | Description | Resolution |
|---|---|---|
| Invalid context | Not in app directory | Navigate to app root |
| Missing config | No sync.json | Run zeysdk link |
| Permission denied | Insufficient rights | Check credentials |
Notes
- Reversible action
- App remains installed
- Users lose access
- Data preserved until final deletion
- Can be reactivated if needed
Best Practices
-
Before Pre-deletion
- Backup important data
- Notify users
- Document dependencies
-
After Pre-deletion
- Verify status
- Update documentation
- Plan final removal