title: how to delete tableview cell from parse's server and local storage
body: <pre><code>  import UIKit
  
  class MasterTableViewController: UITableViewController, PFLogInViewControllerDelegate, PFSignUpViewControllerDelegate {
  
  
   // creating array for holding ojects 
  
  
  
  var noteObjects: NSMutableArray! = NSMutableArray()
    var v = 0
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
  }
  
  override func viewDidAppear(animated: Bool) {
      super.viewDidAppear(animated)
  
  
  
      if v == 0 {
          self.fetchAllObjectsFromLocalDataStore()
          //self.fetchAllObjects()
  
  
      }
  }
  
  
  // fetching data from local datastrore and from parse
  
  func fetchAllObjectsFromLocalDataStore(){
  
      let query: PFQuery = PFQuery(className: "classname")
      query.orderByDescending("createdAt")
  
      query.fromLocalDatastore()
  
      query.findObjectsInBackgroundWithBlock { (objects, error) -&gt; Void in
  
          if (error == nil) {
  
  
  
  
              let temp: NSArray = objects as! NSArray
  
              self.noteObjects = temp.mutableCopy() as! NSMutableArray
  
               self.tableView.reloadData()
  
          }else {
          print(error!.userInfo)
  
          }
      }
  
  }
  
  
  func fetchAllObjects(){
  
     let query: PFQuery = PFQuery(className: "classname")
      query.orderByDescending("createdAt")
  
      query.findObjectsInBackgroundWithBlock { (objects, error) -&gt; Void in
  
          if (error == nil) {
  
  
  
  
              PFObject.pinAllInBackground(objects, block:  nil )
  
  
              self.fetchAllObjectsFromLocalDataStore()
  
             // self.tableView.reloadData()
  
  
          } else {
          print(error?.userInfo)
  
          }
   }
  }
  
  
  
  
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  
  
  
  // MARK: - Table view data source
  
  override func numberOfSectionsInTableView(tableView: UITableView) -&gt; Int {
      // #warning Incomplete implementation, return the number of sections
      return 1
  }
  
  override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      // #warning Incomplete implementation, return the number of rows
      return self.noteObjects.count
  }
  
  
  override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let cell = self.tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath) as! MasterTableViewCell
  
   let object : PFObject = self.noteObjects.objectAtIndex(indexPath.row) as! PFObject
  
  
      cell.MasterTitleLabel?.text = object["Title"] as? String
      cell.MasterTextLabel.text = object["Fstory"] as? String
      cell.MasterTimeLabel.text = object["Time"] as? String
      cell.MasterLocationLabel.text = object["Location"] as? String
  
      return cell
  }
  
  override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
      self.performSegueWithIdentifier("openStory", sender: self)
  
  }
  
  override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
  
      let upcoming: AddNoteTableViewController = segue.destinationViewController as! AddNoteTableViewController
  
      if (segue.identifier == "openStory"){
  
  
          let indexPath = self.tableView.indexPathForSelectedRow!
  
          let object: PFObject = self.noteObjects.objectAtIndex(indexPath.row) as! PFObject
  
          upcoming.object = object
  
          self.tableView.deselectRowAtIndexPath(indexPath, animated: true)
  }
  
  }
  
  
  @IBAction func btnReload(sender: AnyObject) {
  
      fetchAllObjects()
  
  
  }
  
  
  override func tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -&gt; Bool {
      return true
  }
  override func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
      if (editingStyle == UITableViewCellEditingStyle.Delete){
  
  
          noteObjects.removeObjectAtIndex(indexPath.row)
          self.tableView.reloadData()
  
    }
  }
  }
  </code></pre>
  
  <p>the above code is for retrieving objects with are saved in Parse's server am able to retrieve the data and store it on my local data storage too but i don't know how to delete the selected cell from my tableview when am deleting it from the commitEditing.delete..... command it keep sending me object which is in my local storage so please if somebody knows how to do that deleting thing than explain me with codes thanks have a good day :)</p>