Skip to main content

Remove Asset (zeysdk remove)

Remove an existing asset from your ZeyOS application.

zeysdk remove <ASSET_CLASS>/<FILENAME> [options]

Parameters

ParameterDescriptionRequiredExample
ASSET_CLASSAsset type (resources, services, weblets)services
FILENAMEName of existing asset filedaily-backup.ixml

Options

OptionDescriptionDefault
--verboseShow detailed progress outputfalse

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

ErrorDescriptionResolutionExample
Invalid asset classWrong type specifiedUse correct classInvalid asset class. Expected: services, resources, weblets
Missing app.jsonConfig file not foundInitialize apprequires the zeyos.app.json file to exist
Asset not foundAsset doesn't existCheck asset namerequires the asset key to exist in zeyos.app.json
File delete errorCannot remove fileCheck permissionsThere was a problem deleting the file