decode a pid before attempting to delete in case it was passed encoded

encoded pids can be found in idrs for flickr and gmail, non-encoded
pids can be found in the services' original data.

This handles both cases.