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 -
- username from the above command is the username of your cpanel user.
- 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.