title: Swift delete plist
body: <p>I use <code>NSKeyedArchiver.archiveRootObject(Any, toFile: String)</code> function to store object array in the plist of ios.</p>
  
  <p>Each time I call this function, the new data is added to the plist file rather than override the old data. </p>
  
  <p>My thought is to delete old plist file and write data to a new created plist of the same name.</p>
  
  <p>But I don not know how to delete plist file with swift. Hope someone can help and thanks in advance!</p>