| API Call | $object->delete($key [, $casunique ]) |
| Asynchronous | no |
| Description |
Delete a key/value
|
| Returns | scalar; supported values: |
| | COUCHBASE_ETMPFAIL | Temporary failure; try the operation again | |
| | COUCHBASE_KEY_ENOENT | Requested document ID does not exist | |
| | COUCHBASE_NOT_MY_VBUCKET | The command was sent to the wrong server; may be triggered during a rebalance or failover operation. Retry the operation | |
| | COUCHBASE_NOT_STORED | The object was not stored | |
| | docid | Document ID of deleted document | |
| Arguments | |
string $key |
Document ID used to identify the value
|
$casunique |
Unique value used to verify a key/value combination
|