You can remove an element from the JSONArray object using the remove() method. This method accepts an integer and removes the element in that particular index.

Example