Return -1 if document not found
Revert "Return -1 if document not found"

This reverts commit e10c8aa95f4a0a090901a82b03768ef59bd10292.
Merge remote-tracking branch 'origin/master'
Use path when deleting document