Hard deleting a soft-deleted entry
Use this section for instructions on hard deleting a soft-deleted entry from the server when soft-deleted entries are configured as global configuration for requests or configured using a connection or request criteria.
About this task
Consider the following when hard deleting a soft-deleted entry:
Steps
-
To permanently remove a soft-deleted entry from the server, run
ldapdelete
on the soft-deleted entry for soft-deleted entries. -
To hard delete a soft-deleted entry, use
ldapdelete
with the--useHardDelete
option.The Hard Delete Request Control works with soft deletes. It applies when soft delete policies are in place as a means to override soft deletes requests. If soft deletes are configured, running
ldapdelete
with the Hard Delete Request Control, such as using the--useHardDelete
option, guarantees that any entry permanently deletes.
Hard deleting a soft-deleted entry (global configuration)
About this task
Permanently remove a soft-deleted entry from the PingDirectory server.
Steps
-
To permanently remove a soft-deleted entry, run
ldapdelete
on the soft-deleted entry.Example:
The following example assumes that you configured soft deletes as a global configuration for requests.
$ bin/ldapdelete \ entryUUID=4e9b7847-edcb-3791-b11b-7505f4a55af4+uid=user.1,ou=People,dc=example,dc=com Processing DELETE request for entryUUID=4e9b7847-edcb-3791-b11b- 7505f4a55af4+uid=user.1,ou=People,dc=example,dc=com DELETE operation successful for DN entryUUID=4e9b7847-edcb-3791-b11b- 7505f4a55af4+uid=user.1,ou=People,dc=example,dc=com
You cannot soft-delete an already soft-deleted entry. If you use the
--useSoftDelete
subcommand with theldapdelete
operation on a soft-deleted entry, an error message generates.DELETE operation failed. Result Code: 53 (Unwilling to Perform) Diagnostic Message: DELETE operation failed.
Hard deleting a soft-deleted entry (connection or request criteria)
About this task
Permanently remove a soft-deleted entry from the PingDirectory server.
Steps
-
To permanently remove a soft-deleted entry run
ldapdelete
with the--useHardDelete
subcommand on the soft-deleted entry.Example:
The following example assumes that you configured soft deletes using a connection or request criteria.
$ bin/ldapdelete --useHardDelete \ entryUUID=4e9b7847-edcb-3791-b11b-7505f4a55af4+uid=user.1,ou=People,dc=example,dc=com