Updated delete query
Merge pull request #315 from Lerogero/master

Updated delete query