Remove Asset (zeysdk remove)
Remove an existing asset from your ZeyOS application.
zeysdk remove <ASSET_CLASS>/<FILENAME> [options]
Parameters
| Parameter | Description | Required | Example |
|---|---|---|---|
ASSET_CLASS | Asset type (resources, services, weblets) | ✅ | services |
FILENAME | Name of existing asset file | ✅ | daily-backup.ixml |
Options
| Option | Description | Default |
|---|---|---|
--verbose | Show detailed progress output | false |
Examples
# Remove a service
zeysdk remove services/backup.ixml --verbose
# Output:
# Loading assets info.
# Updating assets info.
# Deleting file.
# Remove was completed successfully.
# Remove a weblet
zeysdk remove weblets/dashboard.ixml
# Remove a resource
zeysdk remove resources/logo.png
Error Handling
| Error | Description | Resolution | Example |
|---|---|---|---|
| Invalid asset class | Wrong type specified | Use correct class | Invalid asset class. Expected: services, resources, weblets |
| Missing app.json | Config file not found | Initialize app | requires the zeyos.app.json file to exist |
| Asset not found | Asset doesn't exist | Check asset name | requires the asset key to exist in zeyos.app.json |
| File delete error | Cannot remove file | Check permissions | There was a problem deleting the file |