---
title: "Pre-delete Application"
description: "Documentation for Pre-delete Application Command in ZeyOS SDK CLI"
canonical_url: "https://www.zeyos.com/sdk/activity-management/zeysdk-predelete"
markdown_url: "https://www.zeyos.com/ai/guide/sdk/activity-management/zeysdk-predelete.md"
section: "sdk"
authority: "guide"
language: "en"
source_repository: "zeyos/sdk-v2"
source_path: "docs/application-activity-management/zeysdk-predelete.md"
source_revision: "a99897af74253b4dc5af6fecb9301cea0ae18e27"
---

# 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**

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**

| 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**

1. Before Pre-deletion
   - Backup important data
   - Notify users
   - Document dependencies

2. After Pre-deletion
   - Verify status
   - Update documentation
   - Plan final removal
