{"name":"deleteRange","operator":null,"title":"deleteRange","type":"command","url":"https://community.bistudio.com/wiki/deleteRange","revid":377170,"updated":"2026-01-01T10:45:25Z","groups":["Arrays"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.32"}],"since":{"game":"arma3","name":"Arma 3","version":"1.32"},"arma3_since":"1.32","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Removes a range of array elements from the given array. Modifies the original array, just like resize or set.","syntaxes":[{"syntax":"array deleteRange [from, count]","since":null,"effect":null,"exec":null,"params":[{"name":"array","type":"Array of Anything","optional":false,"default":null,"description":null,"types":["Array","Anything"],"since":null,"text":"array: Array of Anything"},{"name":"from","type":"Number","optional":false,"default":null,"description":"array index to start selection from.","types":["Number"],"since":null,"text":"from: Number - array index to start selection from."},{"name":"count","type":"Number","optional":false,"default":null,"description":"number of array elements to remove. If the selected range exceeds source array boundaries, selection will be made up to the end of the array.","types":["Number"],"since":null,"text":"count: Number - number of array elements to remove. If the selected range exceeds source array boundaries, selection will be made up to the end of the array."}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"array","types":["Array","Anything"]},"right":{"text":"[from, count]","types":["Array"]}}],"examples":[{"text":"```sqf\n_arr = [1,2,3,4,5,6];\n_arr deleteRange [1,4];\nhint str _arr; // [1,6]\n```","code":["_arr = [1,2,3,4,5,6];\n_arr deleteRange [1,4];\nhint str _arr; // [1,6]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["deleteAt","set","resize","select","in","find","toArray","toString","forEach","count","pushBack","pushBackUnique","apply","append","sort","param","params","arrayIntersect","splitString","joinString"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Arrays","Introduced with Arma 3 version 1.32","Scripting Commands"]}