title: How to remove a key-value pair from swift dictionary?
body: <p>I want to remove a key-value pair from a dictionary like in the example.</p>
  <pre><code>var dict: Dictionary&lt;String,String&gt; = [:]
  //Assuming dictionary is added some data.
  var willRemoveKey = &quot;SomeKey&quot;
  dict.removePair(willRemoveKey) //that's what I need
  </code></pre>