{"name":"tvDelete","title":"tvDelete","type":"command","url":"https://community.bistudio.com/wiki/tvDelete","revid":378380,"updated":"2026-04-04T04:46:06Z","groups":["GUI Control - Tree View"],"status":"ok","games":{"arma3":"0.74"},"since":"arma3 0.74","arma3_since":"0.74","locality":{"argument":"local","effect":"local"},"description":"Removes an item with given Tree View Path from Tree View.\n\n> [!IMPORTANT]\n> The paths of other items on the same branch after delete operation are updated accordingly; therefore, when deleting multiple entries, start with the one with the highest index and proceed in reverse order.","syntaxes":[{"syntax":"tvDelete [idc, path]","params":[{"name":"idc","type":"Number","type_expr":"Number"},{"name":"path","type":"Tree View Path","type_expr":"Tree View Path"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"[idc, path]"}},{"syntax":"control tvDelete path","params":[{"name":"control","type":"Control","type_expr":"Control"},{"name":"path","type":"Tree View Path","type_expr":"Tree View Path"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"control"},"right":{"text":"path"}}],"examples":[{"code":["tvDelete [101, [0, 0]];"]},{"code":["_ctrl tvDelete [0, 0];"]}],"see_also":["tvAdd","tvClear","tvCollapse","tvCount","tvCurSel","tvData","tvExpand","tvPicture","tvSetCurSel","tvSetData","tvSetPicture","tvSetValue","tvSort","tvSortByValue","tvText","tvValue"]}