Avoid wasting time preparing the payload if operation is a delete.
Merge pull request #387 from hindessm/fix-scope-of-data

Avoid wasting time preparing the payload if operation is a delete.