Google\Cloud\Datastore\DatastoreClient::delete PHP Method

delete() public method

Deletion by this method is non-transactional. If you need transaction support, use {@see \Google\Cloud\Datastore\Transaction::delete()}. Example: $key = $datastore->key('Person', 'Bob'); $datastore->delete($key);
public delete ( Key $key, array $options = [] ) : string
$key Key The identifier to delete.
$options array [optional] { Configuration options @type string $baseVersion Provides concurrency control. The version of the entity that this mutation is being applied to. If this does not match the current version on the server, the mutation conflicts. }
return string The updated entity version number.
    public function delete(Key $key, array $options = [])
    {
        $res = $this->deleteBatch([$key], $options);
        return $this->parseSingleMutationResult($res);
    }