How to force remove > FileOp Failure On: /home/user/public_html/folder Directory not empty Print

  • force remove, FileOp Failure, Directory not empty, trash folder, forces deletion, directories, command, Command Prompt, cpanel, whm, cpanel trash
  • 1

Hello,

Suppose, this issue is happening while you are trying to remove files / folders from trash folder, so you can follow the below instruction: - 

Delete the contents of the directory using the rm command. The -f option forces deletion, and the -r option allows for recursive deletion of directories and their contents.

To delete all files and folders inside a specific user's trash, run:

Command: rm -rf /home/username/.trash/*

Important to know -

  1. username from the above command is the username of your cpanel user.
  2. Some folders may not get removed if they have files or sub-folders inside with any other permission value than 777. Like, you have some with 555 permissions which you have to make 777 before re-trying the command.

 

Thanks for your reading.


Was this answer helpful?

« Back