I'm not sure you can delete the file here. If an identical file was added at an attachment to another document, it'll have the same key in the blob store -- so you'd end up deleting a blob that was required by another document.