Fix delete operations unref
Merge pull request #64 from flyvictor/fix-delete-unlinking

Fix delete operations unref