<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_md_docs_2hash_2hash_delete_id" xml:lang="en-US">
<title>hashDeleteId</title>
<indexterm><primary>hashDeleteId</primary></indexterm>
<section xml:id="_md_docs_2hash_2hash_delete_id_1autotoc_md190">
<title>autotoc_md190</title>
<para>title: ArmaRAMDb - Hash Delete ID icon: mdi:file-text-outline </para>
</section>
<section xml:id="_md_docs_2hash_2hash_delete_id_1autotoc_md191">
<title>excerpt: Remove a specific hash table from database.</title></section>
<section xml:id="_md_docs_2hash_2hash_delete_id_1autotoc_md192">
<title>ramdb_db_fnc_hashDeleteId</title><section xml:id="_md_docs_2hash_2hash_delete_id_1autotoc_md193">
<title>Description</title>
<para>Removes a specific hash table from the database using its unique identifier. This function deletes all fields and values associated with the specified hash ID. Unlike the global <computeroutput>hashDelete</computeroutput> function, this operation only affects a single hash table entry.</para>
</section>
<section xml:id="_md_docs_2hash_2hash_delete_id_1autotoc_md194">
<title>Syntax</title>
<para><literallayout><computeroutput>[_key]&#32;call&#32;ramdb_db_fnc_hashDeleteId
</computeroutput></literallayout></para>
</section>
<section xml:id="_md_docs_2hash_2hash_delete_id_1autotoc_md195">
<title>Parameters</title>
<para><informaltable frame="all">
    <tgroup cols="4" align="left" colsep="1" rowsep="1">
      <colspec colname='c1'/>
      <colspec colname='c2'/>
      <colspec colname='c3'/>
      <colspec colname='c4'/>
<thead>
      <row  class='markdownTableHead'>
<entry>
<para>Parameter   </para>
</entry><entry>
<para>Type   </para>
</entry><entry>
<para>Description   </para>
</entry><entry>
<para>Default    </para>
</entry></row>
</thead><tbody>
      <row  class='markdownTableRowOdd'>
<entry>
<para><computeroutput>_key</computeroutput>   </para>
</entry><entry>
<para>String   </para>
</entry><entry>
<para>Identifier of the hash to be deleted   </para>
</entry><entry>
<para>&quot;&quot;   </para>
</entry></row>
    </tbody>
    </tgroup>
</informaltable>
</para>
</section>
<section xml:id="_md_docs_2hash_2hash_delete_id_1autotoc_md196">
<title>Return Value</title>
<para>None. The operation runs synchronously to delete the specified hash table.</para>
</section>
<section xml:id="_md_docs_2hash_2hash_delete_id_1autotoc_md197">
<title>Examples</title><section xml:id="_md_docs_2hash_2hash_delete_id_1autotoc_md198">
<title>Delete a specific hash table:</title>
<para><literallayout><computeroutput>[&quot;playerStats&quot;]&#32;call&#32;ramdb_db_fnc_hashDeleteId;
</computeroutput></literallayout></para>
</section>
<section xml:id="_md_docs_2hash_2hash_delete_id_1autotoc_md199">
<title>Delete a player&apos;s hash data:</title>
<para><literallayout><computeroutput>[getPlayerUID&#32;player]&#32;call&#32;ramdb_db_fnc_hashDeleteId;
</computeroutput></literallayout></para>
</section>
<section xml:id="_md_docs_2hash_2hash_delete_id_1autotoc_md200">
<title>Delete a hash table from a client:</title>
<para><literallayout><computeroutput>[&quot;vehicleData&quot;]&#32;remoteExecCall&#32;[&quot;ramdb_db_fnc_hashDeleteId&quot;,&#32;2,&#32;false];
</computeroutput></literallayout></para>
</section>
</section>
<section xml:id="_md_docs_2hash_2hash_delete_id_1autotoc_md201">
<title>Notes</title>
<para><itemizedlist>
<listitem>
<para>This operation only removes a single hash table identified by <computeroutput>_key</computeroutput></para>
</listitem><listitem>
<para>Cannot be undone unless you have a backup</para>
</listitem><listitem>
<para>Validates that the key is not empty before proceeding</para>
</listitem><listitem>
<para>All fields associated with the hash ID are removed</para>
</listitem><listitem>
<para>Useful for clearing player-specific data or resetting entity data</para>
</listitem><listitem>
<para>Executes immediately without confirmation</para>
</listitem><listitem>
<para>Logs the operation for debugging purposes</para>
</listitem></itemizedlist>
</para>
</section>
<section xml:id="_md_docs_2hash_2hash_delete_id_1autotoc_md202">
<title>Related Functions</title>
<para><itemizedlist>
<listitem>
<para><computeroutput>ramdb_db_fnc_hashDelete</computeroutput>: Removes all hash tables</para>
</listitem><listitem>
<para><computeroutput>ramdb_db_fnc_hashSetId</computeroutput>: Sets a value in a specific hash table</para>
</listitem><listitem>
<para><computeroutput>ramdb_db_fnc_hashGetId</computeroutput>: Retrieves a value from a specific hash table</para>
</listitem><listitem>
<para><computeroutput>ramdb_db_fnc_hashGetAllId</computeroutput>: Retrieves all fields from a specific hash table</para>
</listitem></itemizedlist>
</para>
</section>
<section xml:id="_md_docs_2hash_2hash_delete_id_1autotoc_md203">
<title>Links</title>
<para><link linkend="_md_docs_2hash_2hash_delete">Hash Delete</link> | <link linkend="_md_docs_2hash_2hash_delete_id">Hash Delete ID</link> | <link linkend="_md_docs_2hash_2hash_get">Hash Get</link> | <link linkend="_md_docs_2hash_2hash_get_all">Hash Get All</link> | <link linkend="_md_docs_2hash_2hash_get_all_id">Hash Get All ID</link> | <link linkend="_md_docs_2hash_2hash_get_id">Hash Get ID</link> | <link linkend="_md_docs_2hash_2hash_remove">Hash Remove</link> | <link linkend="_md_docs_2hash_2hash_remove_id">Hash Remove ID</link> | <link linkend="_md_docs_2hash_2hash_set">Hash Set</link> | <link linkend="_md_docs_2hash_2hash_set_bulk">Hash Set Bulk</link> | <link linkend="_md_docs_2hash_2hash_set_id">Hash Set ID</link> | <link linkend="_md_docs_2hash_2hash_set_id_bulk">Hash Set ID Bulk</link> </para>
</section>
</section>
</section>
