Loading TOC...

MarkLogic Server 11.0 Product Documentation
DELETE /v1/config/namespaces/{prefix}

Summary

[DEPRECATED: Use PUT /manage/v2/servers/{id|name}/properties instead.]

Remove the namespace binding for {prefix}.

Response

Upon success, MarkLogic Server responds with status 204 (Content Deleted). MarkLogic Server responds with status 204 even if no binding exists for {prefix}.

Required Privileges

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

http://marklogic.com/xdmp/privileges/rest-admin

http://marklogic.com/xdmp/privileges/rest-writer

http://marklogic.com/xdmp/privileges/rest-reader

Usage Notes

For details, see Using Namespace Bindings in the REST Application Developer's Guide.

Example

$ curl --anyauth --user user:password -X DELETE -i \
    http://localhost:8004/v1/config/namespaces/bill

==> MarkLogic Server removes the namespace binding between the prefix
    "bill" and the associated URI and responds with status 204.  
    MarkLogic server responds with headers of the form:

Server: MarkLogic
Content-Type: text/xml; charset=UTF-8
Content-Length: 211
Connection: close

HTTP/1.1 204 Deleted
Server: MarkLogic
Content-Length: 0
Connection: close
  

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