title: Application crashes when executing NSBatchDeleteRequest with "Unknown Command Type <NSBatchDeleteRequest,..>"
body: <p>I'm writing an OS X application, and it needs to be able to delete all "SongEntity" instances held in its Core Data store. 
  However, when I try to execute an NSBatchDeleteRequest, my application crashes, with the following console-output (excerpt): </p>
  
  <blockquote>
    <p>Unknown command type  (entity: SongEntity; predicate:
    ((null)); sortDescriptors: ((null)); type:
    NSManagedObjectIDResultType; ) ></p>
  </blockquote>
  
  <p>Here's my implementation:</p>
  
  <pre><code>func clearStore()
  {
      let fetchRequest = NSFetchRequest(entityName: "SongEntity")
      let deleteRequest = NSBatchDeleteRequest(fetchRequest: fetchRequest)
  
      do
      {
          try managedObjectContext.executeRequest(deleteRequest)
      }
      catch
      {
          fatalError("Not able to perform operation: \(error)")
      }
      managedObjectContext.reset()
  }
  </code></pre>
  
  <p>Any help would be much appreciated</p>
  
  <p><strong>EDIT:</strong>
  It turns out that this issue is related to the chosen store-type: 
  From class <code>NSBatchDeleteRequest</code>: </p>
  
  <pre><code>//  May not be supported by all store types.
  </code></pre>
  
  <p>I tried changing the store-type from <code>NSXMLStoreType</code> (the macOS template default) to <code>NSSQLiteStoreType</code> and now it works. </p>