Fix for delete method

Adding handling of optional data payload to delete method.
Merge pull request #1 from sfresk/master

Fix for delete method