\chapter{list\+Delete}
\hypertarget{md_docs_2list_2list_delete}{}\label{md_docs_2list_2list_delete}\index{listDelete@{listDelete}}
\hypertarget{md_docs_2list_2list_delete_autotoc_md361}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md361}{autotoc\+\_\+md361}}\label{md_docs_2list_2list_delete_autotoc_md361}
title\+: Arma\+RAMDb -\/ List Delete icon\+: mdi\+:file-\/text-\/outline \hypertarget{md_docs_2list_2list_delete_autotoc_md362}{}\doxysubsection{\texorpdfstring{excerpt\+: Delete an entire list stored at a key from RAMDb.}{excerpt\+: Delete an entire list stored at a key from RAMDb.}}\label{md_docs_2list_2list_delete_autotoc_md362}
\hypertarget{md_docs_2list_2list_delete_autotoc_md363}{}\doxysection{\texorpdfstring{ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Delete}{ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Delete}}\label{md_docs_2list_2list_delete_autotoc_md363}
\hypertarget{md_docs_2list_2list_delete_autotoc_md364}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md_docs_2list_2list_delete_autotoc_md364}
Completely removes a list and all its elements stored at a specified key from the RAMDb database. This function provides a way to delete entire collections of data at once, rather than removing individual elements. It is useful for cleaning up obsolete data, resetting collections, or removing temporary lists that are no longer needed.\hypertarget{md_docs_2list_2list_delete_autotoc_md365}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md_docs_2list_2list_delete_autotoc_md365}

\begin{DoxyCode}{0}
\DoxyCodeLine{[\_key]\ call\ ramdb\_db\_fnc\_listDelete}

\end{DoxyCode}
\hypertarget{md_docs_2list_2list_delete_autotoc_md366}{}\doxysubsection{\texorpdfstring{Parameters}{Parameters}}\label{md_docs_2list_2list_delete_autotoc_md366}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{4}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Parameter   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Type   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Description   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Default    }\\\cline{1-4}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Parameter   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Type   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Description   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ Default    }\\\cline{1-4}
\endhead
\+\_\+key   &String   &The key identifying the list to be deleted   &"{}"{}   \\\cline{1-4}
\end{longtabu}
\hypertarget{md_docs_2list_2list_delete_autotoc_md367}{}\doxysubsection{\texorpdfstring{Return Value}{Return Value}}\label{md_docs_2list_2list_delete_autotoc_md367}
None. The operation runs synchronously to delete the list immediately.\hypertarget{md_docs_2list_2list_delete_autotoc_md368}{}\doxysubsection{\texorpdfstring{Examples}{Examples}}\label{md_docs_2list_2list_delete_autotoc_md368}
{\bfseries{Delete an event log\+:}} 
\begin{DoxyCode}{0}
\DoxyCodeLine{["{}eventLog"{}]\ call\ ramdb\_db\_fnc\_listDelete;}

\end{DoxyCode}


{\bfseries{Remove temporary mission data\+:}} 
\begin{DoxyCode}{0}
\DoxyCodeLine{["{}tempMissionData"{}]\ call\ ramdb\_db\_fnc\_listDelete;}

\end{DoxyCode}


{\bfseries{Delete a list in multiplayer\+:}} 
\begin{DoxyCode}{0}
\DoxyCodeLine{["{}sharedTempData"{}]\ remoteExecCall\ ["{}ramdb\_db\_fnc\_listDelete"{},\ 2,\ false];}

\end{DoxyCode}
\hypertarget{md_docs_2list_2list_delete_autotoc_md369}{}\doxysubsection{\texorpdfstring{Notes}{Notes}}\label{md_docs_2list_2list_delete_autotoc_md369}

\begin{DoxyItemize}
\item This function deletes the entire list and all its elements associated with the specified key.
\item Unlike {\ttfamily list\+Remove}, which removes a single element by index, this function removes the complete list structure.
\item The {\ttfamily \+\_\+key} parameter must be a non-\/empty string, otherwise the function will exit without performing any action.
\item Once a list is deleted, it cannot be recovered unless you have previously saved or backed up the data.
\item If you need to selectively remove elements while preserving the list structure, use {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Remove} instead.
\item The deletion operation is permanent and cannot be undone.
\item All list operations are logged for debugging purposes.
\end{DoxyItemize}\hypertarget{md_docs_2list_2list_delete_autotoc_md370}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md_docs_2list_2list_delete_autotoc_md370}

\begin{DoxyItemize}
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Add}\+: Adds an element to a list
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Get}\+: Retrieves a specific element from a list
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Load}\+: Retrieves a range of elements from a list
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Set}\+: Replaces a specific element in a list
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Remove}\+: Removes a specific element from a list
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+scheduler}\+: Processes the callback from the database extension
\end{DoxyItemize}\hypertarget{md_docs_2list_2list_delete_autotoc_md371}{}\doxysubsection{\texorpdfstring{Links}{Links}}\label{md_docs_2list_2list_delete_autotoc_md371}
\doxysectlink{md_docs_2list_2list_add}{List Add}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2list_2list_delete}{List Delete}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2list_2list_get}{List Get}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2list_2list_load}{List Load}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2list_2list_remove}{List Remove}{0} \texorpdfstring{$\vert$}{|} \doxysectlink{md_docs_2list_2list_set}{List Set}{0} 