How Do I Force Rm in Linux?
Contents How Do I Force Delete a File in Linux? to Remove File or Directory Forcefully, You Can Use the Option -F Force a Deletion Operation Without Rm...
How do I force delete a file in Linux?
To remove file or directory forcefully, you can use the option -f force a deletion operation without rm prompting you for confirmation. For example if a file is unwritable, rm will prompt you whether to remove that file or not, to avoid this and simply execute the operation.
Must Read
How can I RM without confirmation?
Remove a file without being prompted
While you can simply unalias the rm alias, a simpler and generally used method to remove files without being prompted is to add the force -f flag to the rm command. It is advisable that you only add the force -f flag if you really know what you are removing.