move tilde deletion logic up one level

the permissions work on the permalink but not the mangled (tilde)
so move the delete into the correct permissions block and only
do it if the non-tilde fails.

exit as normal if both fail