{"name":"deleteCollection","title":"deleteCollection","type":"command","url":"https://community.bistudio.com/wiki/deleteCollection","revid":379330,"updated":"2026-10-30T23:52:10Z","groups":["Object Manipulation"],"status":"ok","games":{"arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma1 1.00","arma3_since":"0.50","description":"Delete a collection. As example, used with a soldier, it'll hide the ingame model.\n\n*When targetting Arma 2 1.06 or newer, use hideObject instead. This function is a relic from dynamic building destruction development. It is left only for compatibility with scripts created before Arma 2 1.06, and its functionality may be changed or removed in the future.*","syntaxes":[{"syntax":"deleteCollection object","params":[{"name":"object","type":"Object","type_expr":"Object"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"object"}}],"examples":[{"code":["deleteCollection unitName;"]}],"see_also":["hideObject","hideObjectGlobal","isObjectHidden"],"notes":[{"user":"Killzone_Kid","date":"2014-08-20T21:23:00Z","text":"In Arma 3 deleteCollection is alias for hideObject"}]}