Loading TOC...

MarkLogic Server 11.0 Product Documentation
DELETE /v1/config/namespaces

Summary

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

Remove all installed namespace bindings.

Response

MarkLogic Server responds with 204 (Deleted).

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

To remove a specific binding, use DELETE /v1/config/namespaces/{prefix}.

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

Example

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

==> MarkLogic Server removes all namespace bindings for the REST
    service on port 8000. MarkLogic Server returns the following headers:

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.