Added check to remove tiny_url records when a shared file is deleted