If a file is write-protected, you will be prompted to confirm the deletion. To force delete a file without being prompted, you need to use the rm -f command followed by the file name.
rm -f
rm -f filename