--- title: ArmaRAMDb - Hash Remove ID icon: mdi:file-text-outline excerpt: Remove a field from a specific hash table. --- # ramdb_db_fnc_hashRemoveId ## Description Removes a specific field from a specific hash table identified by its key. This function deletes a single field and its associated value from a targeted hash table without affecting other fields. It's ideal for managing player-specific or entity-specific data when only certain attributes need to be removed. ## Syntax ```sqf [_key, _keyField] call ramdb_db_fnc_hashRemoveId ``` ## Parameters | Parameter | Type | Description | Default | |-------------|--------|----------------------------------------------|---------| | `_key` | String | Identifier of the hash table | "" | | `_keyField` | String | Name of the field in the hash to be removed | "" | ## Return Value None. The operation runs synchronously to remove the field. ## Examples ### Remove a player's loadout field: ```sqf [getPlayerUID player, "loadout"] call ramdb_db_fnc_hashRemoveId; ``` ### Remove a vehicle property: ```sqf ["vehicle_123", "cargo"] call ramdb_db_fnc_hashRemoveId; ``` ### Remove a field remotely: ```sqf [getPlayerUID player, "stats"] remoteExecCall ["ramdb_db_fnc_hashRemoveId", 2, false]; ``` ## Notes - Removes a single field from a specific hash table identified by `_key` - Both the key and key field parameters are required and validated - Does not affect other fields in the hash table - If the hash table or field doesn't exist, the operation has no effect - Player UIDs are commonly used as keys to identify player-specific hash tables - The operation is executed immediately and synchronously - All operations are logged for debugging purposes ## Related Functions - `ramdb_db_fnc_hashRemove`: Removes a specific field from the global hash table - `ramdb_db_fnc_hashDeleteId`: Removes an entire specific hash table - `ramdb_db_fnc_hashDelete`: Removes all hash tables - `ramdb_db_fnc_hashSetId`: Sets a field value in a specific hash table - `ramdb_db_fnc_hashGetId`: Retrieves a field value from a specific hash table ## Links [Hash Delete](hashDelete.md) | [Hash Delete ID](hashDeleteId.md) | [Hash Get](hashGet.md) | [Hash Get All](hashGetAll.md) | [Hash Get All ID](hashGetAllId.md) | [Hash Get ID](hashGetId.md) | [Hash Remove](hashRemove.md) | [Hash Remove ID](hashRemoveId.md) | [Hash Set](hashSet.md) | [Hash Set Bulk](hashSetBulk.md) | [Hash Set ID](hashSetId.md) | [Hash Set ID Bulk](hashSetIdBulk.md)