eXist-db / xst

Command line tool to interact with exist-db instances
https://npmjs.com/@existdb/xst
MIT License
18 stars 5 forks source link

feat: command to remove collections and resources #24

Closed line-o closed 1 year ago

line-o commented 2 years ago

New command rm (remove, delete, del) allows to remove one or more collections and resources from an eXist-db instance.

Special paths, like /db and /db/system are protected and cannot be deleted as they render the entire database unusable.

Examples:

Remove two resources

xst rm /db/temp/a.xml /db/temp/b.xml

Remove an entire collection

xst rm -rf /db/apps/my-app

closes #9