listen to the pre delete hook in the sharing app [master]

we need to listen to the pre delete hook, otherwise the file is already gone

cc @MTGap