Zum Hauptinhalt springen

Remove Asset

Remove an existing asset from your ZeyOS application.

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

Parameters

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

Options

OptionDescriptionDefault
--verboseShow detailed progress outputfalse

Examples

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