Deleting a possibly corrupt file

Whenever I have a file like that and it does happen on occasion I SSH in and forcibly remove it by using the rm command

Example: rm -f /type.file.path.here