Loading TOC...

DELETE /v1/ext/{directories}/{asset}


Remove the asset with document URI /ext/{directories}/{asset} from the modules database associated with this REST API instance.


MarkLogic Server responds with 204 (Deleted), whether or not there is an asset in the modules database with the specified document URI.

Required Privileges

This operation requires the rest-admin role, or the following privileges:




Usage Notes

/ext/{directories}/{asset} must be the document URI of the asset in the modules database, where {directories} is one or more database directory path steps, separated by "/", and {asset} is the asset document. See the example below.

To remove all assets in a database directory with a single request, use DELETE /v1/ext/{directories}.

For more details, see Managing Dependent Libraries and Other Assets in the REST Application Developer's Guide.


$ curl --anyauth --user user:password -X DELETE -i \

==> MarkLogic Server deletes the XQuery library module with the document 
    URI /ext/my/example/my-lib.xqy from the modules database associated
    with this REST API instance and returns a response similar to the

HTTP/1.1 204 Deleted
Server: MarkLogic
Content-Length: 0
Connection: Keep-Alive
Keep-Alive: timeout=5

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.


The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.