---
title: Deleting entries using ldapmodify
description: You can use the LDIF changetype directive to delete an entry from the PingDirectory server using the ldapmodify tool.
component: pingdirectory
version: 11.0
page_id: pingdirectory:pingdirectory_server_administration_guide:pd_ds_delete_entries_ldapmodify
canonical_url: https://docs.pingidentity.com/pingdirectory/11.0/pingdirectory_server_administration_guide/pd_ds_delete_entries_ldapmodify.html
revdate: September 13, 2023
section_ids:
  about-this-task: About this task
  steps: Steps
  example: Example:
---

# Deleting entries using ldapmodify

## About this task

You can use the LDIF changetype directive to delete an entry from the PingDirectory server using the `ldapmodify` tool.

|   |                                   |
| - | --------------------------------- |
|   | You can only delete leaf entries. |

## Steps

1. Delete an entry using the `ldapmodify` tool.

   1. From the command line run the `ldapmodify` tool with the `changetype:delete` option.

   2. Enter the distinguished name (DN) and press `Enter` to go to the next line.

   3. Enter the `changetype` directive.

   4. Press `Ctrl+D` twice to enter the end-of-file (EOF) sequence (UNIX) or `Ctrl+Z` (Windows).

      ### Example:

      ```shell
      $ bin/ldapmodify --hostname server1.example.com -port 389 --bindDN "uid=admin,dc=example,dc=com" --bindPassword password
      dn:uid=user.14,ou=People,dc=example,dc=com
      changetype: delete
      ```
