To remove an item from a dictionary, you can simply set it to nil :
var myTable = [ "Apple": "iOS", "Google" : "Android", "Microsoft" : "Windows Phone" ] myTable["Microsoft"] = nil; print(myTable.count) //2
The number of items inside the dictionary would now be reduced by one.
Alternatively, you can use the removeValueForKey() method,
var myTable = [ "Apple": "iOS", "Google" : "Android", "Microsoft" : "Windows Phone" ] if let removedValue = myTable.removeValueForKey("Microsoft") { print("Platform removed: \(removedValue)") } else {/*from w w w. ja va2 s . c om*/ print("Key not found") }