I think in the case of a delete, you should use createMutationQuery now. With this method, you don't need to pass Class.
Some documentation here