Skip to content

Commit 6fb1f14

Browse files
BUGFIX: Use correct path when deleting a document by id (#90)
BUGFIX: Use correct path to delete a document via id
1 parent 1f94013 commit 6fb1f14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Domain/Model/AbstractType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function request(string $method, ?string $path = null, array $arguments =
114114
*/
115115
public function deleteDocumentById(string $id): bool
116116
{
117-
$response = $this->request('DELETE', '/' . $id);
117+
$response = $this->request('DELETE', '/_doc/' . $id);
118118
$treatedContent = $response->getTreatedContent();
119119

120120
return $response->getStatusCode() === 200 && $treatedContent['result'] === 'deleted';

0 commit comments

Comments
 (0)