Use promises also for deleting resources.