You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -438,20 +438,20 @@ var_dump($result);
438
438
<a name="deleting_document"/a>
439
439
## Deleting a document
440
440
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:
442
442
443
443
```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);
446
446
var_dump($result);
447
447
```
448
448
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.
450
450
451
451
```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
0 commit comments