Skip to main content
View Markdown

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

OptionDescription
--verboseShow detailed output

Process

  1. Validation

    • Checks app context
    • Verifies configuration
    • Validates permissions
  2. Pre-deletion

    • Sets app activity to pre-deleted
    • Updates platform state
    • Confirms status change
  3. Follow-up

    • Leaves the application installed
    • Keeps application data available for recovery workflows
    • Allows reactivation when deletion is cancelled

Error Handling

ErrorDescriptionResolution
Invalid contextNot in app directoryNavigate to app root
Missing configNo sync.jsonRun zeysdk link
Permission deniedInsufficient rightsCheck credentials

Notes

  • Reversible action
  • App remains installed
  • Users lose access
  • Data preserved until final deletion
  • Can be reactivated if needed

Best Practices

  1. Before Pre-deletion

    • Backup important data
    • Notify users
    • Document dependencies
  2. After Pre-deletion

    • Verify status
    • Update documentation
    • Plan final removal