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

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