Skip to content

Commit 68d5375

Browse files
frankmayerJan Steemann
authored andcommitted
Update README.md
Closes arangodb#178
1 parent 8823ed3 commit 68d5375

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -438,20 +438,20 @@ var_dump($result);
438438
<a name="deleting_document"/a>
439439
## Deleting a document
440440

441-
To delete an existing document on the server, the delete() method of the DocumentHandler class will do. delete() just needs the document to be deleted:
441+
To remove an existing document on the server, the remove() method of the DocumentHandler class will do. remove() just needs the document to be removed as a parameter:
442442

443443
```php
444-
// delete a document on the server, using a document object
445-
$result = $handler->delete($userFromServer);
444+
// remove a document on the server, using a document object
445+
$result = $handler->remove($userFromServer);
446446
var_dump($result);
447447
```
448448

449-
Note that the document must have been fetched from the server before. If you haven't fetched the document from the server before, use the deleteById() method. This requires just the collection name (here: "users") and the document id.
449+
Note that the document must have been fetched from the server before. If you haven't fetched the document from the server before, use the removeById() method. This requires just the collection name (here: "users") and the document id.
450450

451451
```php
452-
// delete a document on the server, using a collection id and document id
452+
// remove a document on the server, using a collection id and document id
453453
// 4818344 is the document's id
454-
$result = $handler->deleteById('users', 4818344);
454+
$result = $handler->removeById('users', 4818344);
455455
var_dump($result);
456456
```
457457

@@ -653,8 +653,8 @@ try {
653653
var_dump($userFromServer);
654654

655655

656-
// delete a document on the server
657-
$result = $handler->delete($userFromServer);
656+
// remove a document on the server
657+
$result = $handler->remove($userFromServer);
658658
var_dump($result);
659659

660660

0 commit comments

Comments
 (0)