\chapter{list\+Remove}
\hypertarget{md_docs_2list_2list_remove}{}\label{md_docs_2list_2list_remove}\index{listRemove@{listRemove}}
\hypertarget{md_docs_2list_2list_remove_autotoc_md397}{}\doxysubsection{\texorpdfstring{autotoc\+\_\+md397}{autotoc\+\_\+md397}}\label{md_docs_2list_2list_remove_autotoc_md397}
title\+: Arma\+RAMDb -\/ List Remove icon\+: mdi\+:file-\/text-\/outline \hypertarget{md_docs_2list_2list_remove_autotoc_md398}{}\doxysubsection{\texorpdfstring{excerpt\+: Remove an element from a list stored at a key in RAMDb.}{excerpt\+: Remove an element from a list stored at a key in RAMDb.}}\label{md_docs_2list_2list_remove_autotoc_md398}
\hypertarget{md_docs_2list_2list_remove_autotoc_md399}{}\doxysection{\texorpdfstring{ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Remove}{ramdb\+\_\+db\+\_\+fnc\+\_\+list\+Remove}}\label{md_docs_2list_2list_remove_autotoc_md399}
\hypertarget{md_docs_2list_2list_remove_autotoc_md400}{}\doxysubsection{\texorpdfstring{Description}{Description}}\label{md_docs_2list_2list_remove_autotoc_md400}
Removes a specific element from a list stored at a specified key in the RAMDb database. This function allows for precise control over list content by targeting individual elements by their index, without affecting other elements in the list. This is particularly useful for removing outdated or no longer needed entries.\hypertarget{md_docs_2list_2list_remove_autotoc_md401}{}\doxysubsection{\texorpdfstring{Syntax}{Syntax}}\label{md_docs_2list_2list_remove_autotoc_md401}

\begin{DoxyCode}{0}
\DoxyCodeLine{[\_key,\ \_index]\ call\ ramdb\_db\_fnc\_listRemove}

\end{DoxyCode}
\hypertarget{md_docs_2list_2list_remove_autotoc_md402}{}\doxysubsection{\texorpdfstring{Parameters}{Parameters}}\label{md_docs_2list_2list_remove_autotoc_md402}
\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 from which to remove an element   &"{}"{}    \\\cline{1-4}
\+\_\+index   &Number   &The zero-\/based index of the element to remove from the list   &-\/1   \\\cline{1-4}
\end{longtabu}
\hypertarget{md_docs_2list_2list_remove_autotoc_md403}{}\doxysubsection{\texorpdfstring{Return Value}{Return Value}}\label{md_docs_2list_2list_remove_autotoc_md403}
None. The operation runs synchronously to remove the element immediately.\hypertarget{md_docs_2list_2list_remove_autotoc_md404}{}\doxysubsection{\texorpdfstring{Examples}{Examples}}\label{md_docs_2list_2list_remove_autotoc_md404}
{\bfseries{Remove the first element from an event log\+:}} 
\begin{DoxyCode}{0}
\DoxyCodeLine{["{}eventLog"{},\ 0]\ call\ ramdb\_db\_fnc\_listRemove;}

\end{DoxyCode}


{\bfseries{Remove a specific player record\+:}} 
\begin{DoxyCode}{0}
\DoxyCodeLine{["{}playerRecords"{},\ 5]\ call\ ramdb\_db\_fnc\_listRemove;}

\end{DoxyCode}


{\bfseries{Remove an element from a multiplayer environment\+:}} 
\begin{DoxyCode}{0}
\DoxyCodeLine{["{}sharedData"{},\ 2]\ remoteExecCall\ ["{}ramdb\_db\_fnc\_listRemove"{},\ 2,\ false];}

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

\begin{DoxyItemize}
\item This function removes only the element at the specified index. All other elements remain unchanged, though their indices may shift.
\item The index is zero-\/based, meaning the first element is at index 0, the second at index 1, and so on.
\item If an invalid index is provided (negative or exceeding the list length), the operation will not remove any elements.
\item The {\ttfamily \+\_\+key} parameter must be a non-\/empty string, otherwise the function will exit without performing any action.
\item After removing an element, all subsequent elements shift down by one index to maintain a contiguous list.
\item The removal operation is permanent and cannot be undone except by re-\/adding the element.
\item All list operations are logged for debugging purposes.
\end{DoxyItemize}\hypertarget{md_docs_2list_2list_remove_autotoc_md406}{}\doxysubsection{\texorpdfstring{Related Functions}{Related Functions}}\label{md_docs_2list_2list_remove_autotoc_md406}

\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\+Delete}\+: Deletes an entire list
\item {\ttfamily ramdb\+\_\+db\+\_\+fnc\+\_\+scheduler}\+: Processes the callback from the database extension
\end{DoxyItemize}\hypertarget{md_docs_2list_2list_remove_autotoc_md407}{}\doxysubsection{\texorpdfstring{Links}{Links}}\label{md_docs_2list_2list_remove_autotoc_md407}
\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} 