removeAllObjects() Empties the array of all its elements. Declarationfunc removeAllObjects() See AlsoRemoving ObjectsremoveLastObject()remove(_:)remove(_:in:)removeObject(at:)removeObjects(at:)removeObject(identicalTo:)removeObject(identicalTo:in:)removeObjects(fromIndices:numIndices:)removeObjects(in:)removeObjects(in:)