There was an error while loading. Please reload this page.
Use these Aerospike PHP client methods to delete record and bin data from the Aerospike database:
remove() — Remove the record at the specified key.
remove()
removeBin()— Remove specified bins from a record.
removeBin()
$key = $db->initKey("infosphere", "characters", 3); $db->removeBin($key, ["Alma Mater"]);
- Remove a record completely: ```php $key = $db->initKey("infosphere", "characters", 5); $status = $db->remove($key); if ($status == Aerospike::OK) { echo "Record removed.\n"; } elseif ($status == Aerospike::ERR_RECORD_NOT_FOUND) { echo "No such record in the database.\n"; } else { echo "Error [{$db->errorno()}]: ".$db->error(); }