---
title: Configuring soft deletes on the server
description: "Compares the methods for configuring PingDirectory soft deletes: global configuration, connection criteria, and request criteria."
component: pingdirectory
version: 11.0
page_id: pingdirectory:pingdirectory_server_administration_guide:pd_ds_config_soft_deletes_on_server
canonical_url: https://docs.pingidentity.com/pingdirectory/11.1/pingdirectory_server_administration_guide/pd_ds_config_soft_deletes_on_server.html
llms_txt: https://docs.pingidentity.com/pingdirectory/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: September 13, 2023
superseded_by: https://docs.pingidentity.com/pingdirectory/11.1/pingdirectory_server_administration_guide/pd_ds_config_soft_deletes_on_server.html
section_ids:
  steps: Steps
---

# Configuring soft deletes on the server

## Steps

* Use any of the following methods to configure soft deletes on the PingDirectory server.

  | Method                                                       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
  | ------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Using a soft-delete policy and global configuration property | Configure soft deletes by creating a soft-delete policy and a global configuration property. The soft-delete policy enables the feature on the server, while the global configuration property sets the controls used for the soft-delete requests. To enter a soft delete request, the `ldapmodify` or `ldapdelete` command requires the `--useSoftDelete` option. A delete request that does not have the `--useSoftDelete` option is treated as a hard delete, which permanently removes the entry.For more information, see [Configuring soft deletes as a global configuration](pd_ds_config_soft_deletes_global_config.html). |
  | Using connection criteria                                    | Configure soft deletes by defining connection criteria within a client connection policy. Any clients that meet the criteria have their deletes processed as soft deletes.For more information, see [Configuring soft deletes by connection criteria](pd_ds_config_soft_deletes_connection_criteria.html).                                                                                                                                                                                                                                                                                                                          |
  | Using request criteria                                       | Configure soft deletes by defining request criteria within a client connection policy. Any client requests that meet the criteria have their deletes processed as soft deletes.For more information, see [Configuring soft deletes by request criteria](pd_ds_config_soft_deletes_request_criteria.html).&#xA;&#xA;You can define both connection criteria and request criteria. When both criteria exist within a soft-delete policy, connection criteria is processed first, then request criteria.                                                                                                                               |
