file="/path/to/file"
if [ -f $file ]; then
rm $file
fi
In variable file
are path to file what you want to delete.
Don't bother checking if the file exists, just try to remove it:
rm -f /path/file
or
rm /path/file 2> /dev/null
Another one line command:
[ -e file ] && rm file