When attempting to delete a file or folder, you may encounter an error if its permissions do not allow removal. This applies to both individual files and directories.
If you are trying to delete a folder, the issue may not be with the folder itself, but with one or more files or subfolders inside it that have restrictive permissions.
To resolve this issue, you need to update the permissions of the affected file. If the problem involves a folder, you may need to change the permissions for the folder as well as all files and subfolders contained within it.
Set the permissions to 755. Once these permissions are applied to the file or folder (including its contents), you should be able to delete it using the File Manager (Files → File Manager) or via FTP.
If you don’t know how to change the permissions of a file or a folder, please refer to this article: How to change the permissions of a file or a folder?