﻿---
title: Deleting documents
description: Finally, you can delete documents by specifying their full /index/_doc_/id path: 
url: https://www.elastic.co/elastic/docs-builder/docs/2654/reference/elasticsearch/clients/php/deleting_documents
products:
  - Elasticsearch
  - Elasticsearch Client
  - Elasticsearch PHP Client
---

# Deleting documents
Finally, you can delete documents by specifying their full `/index/_doc_/id` path:
```php
$params = [
    'index' => 'my_index',
    'id'    => 'my_id'
];

// Delete doc at /my_index/_doc_/my_id
$response = $client->delete($params);
```