empty list swift code example Example 1: swift empty an array myArray.removeAll() Example 2: array swift var students = ["Ben", "Ivy", "Jordell"]