hashDeletehashDeleteautotoc_md177title: ArmaRAMDb - Hash Delete icon: mdi:file-text-outline excerpt: Remove the current client's hash table from database.ramdb_db_fnc_hashDeleteDescriptionRemoves the hash table associated with the current client/player from the database. Unlike hashDeleteId, this function automatically retrieves the appropriate hash ID based on the caller's identity, making it more convenient for removing the current client's hash data. This is useful for cleanup operations when a player disconnects or when resetting a client's stored data.Syntax[] call ramdb_db_fnc_hashDelete
ParametersNone. This function automatically determines the hash ID based on the calling client.Return ValueNone. The operation runs synchronously to delete the hash table for the current client.ExamplesDelete the current client's hash table:[] call ramdb_db_fnc_hashDelete;
Delete a client's hash table from the server:[] remoteExecCall ["ramdb_db_fnc_hashDelete", 2, false];
NotesThis function only removes the hash table for the current client/player, not all hash tablesIt's similar to hashDeleteId but automatically determines the appropriate IDCannot be undone unless you have a backupShould be used during player disconnection or when resetting a player's dataUseful for cleanup operations to prevent data buildup from disconnected playersMore convenient than hashDeleteId when you want to remove the calling client's dataAll operations are logged for debugging purposesRelated Functionsramdb_db_fnc_hashDeleteId: Removes a specific hash ID (when you need to specify the ID)ramdb_db_fnc_hashSet: Sets a value in the hash tableramdb_db_fnc_hashGet: Retrieves a value from the hash tableLinksHash Delete | Hash Delete ID | Hash Get | Hash Get All | Hash Get All ID | Hash Get ID | Hash Remove | Hash Remove ID | Hash Set | Hash Set Bulk | Hash Set ID | Hash Set ID Bulk