swift empty an array

Swift
myArray.removeAll()
Source

Also in Swift: