Delete a Directory Entry
You can use the Delete
method to remove entries from the directory.
The command examples use the URL structure:
http(s)://host:port/rest/v1/directory
See Send Requests.
To delete a directory entry, submit a request to the URL using the Delete
method:
http://host:port/rest/v1/directory/<directory entry DN>
Example
curl -i -X Delete -u cn=Directory Manager:******* -H Content-type:application/json http://myhost:7001/rest/v1/directory/uid=Marcia Garza,ou=People,dc=example,dc=com
If successful, the response body returns a status code of 204 that confirms the removal of the entry.
HTTP/1.1 204 No Content