listen to the pre delete hook in the sharing app

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