|-
| '''Summary'''
|Deletes documentresource(s), specified by {{Code|$path}}, from the database {{Code|$db}}.
|-
| '''Errors'''
| '''Examples'''
|
* {{Code|db:delete("DB", "docs/dir/doc.xml")}} deletes the document resource {{Code|docs/dir/doc.xml}} in the database from {{Code|DB}}.* {{Code|db:delete("DB", "docs/dir")}} deletes all documents with paths beginning with resources from {{Code|docs/dirDB}} in the database specified path {{Code|DBdocs/dir}}.
|}
|-
| '''Summary'''
|Replaces a documentresource, specified by {{Code|$path}}, in the database {{Code|$db}} with the contents of {{Code|$input}}, or adds it as a new documentresource:
* See [[#db:add|db:add]] for more details on the arguments (for historical reasons, the order of the 2nd and 3rd argument differs).
|-