Error in execution of Command to delete /root/.cache/doc/by-app

Forum tags: 
Forums: 

I get the following 2 errors as of this week in Linux Mint 19, 64bit, 2GB swap file with 16 GB of RAM.

Error in execution of Command to delete /root/.cache/doc/by-app
Traceback (most recent call last):
File "/usr/share/bleachbit/bleachbit/Worker.py", line 83, in execute
for ret in cmd.execute(self.really_delete):
File "/usr/share/bleachbit/bleachbit/Command.py", line 84, in execute
FileUtilities.delete(self.path, self.shred)
File "/usr/share/bleachbit/bleachbit/FileUtilities.py", line 266, in delete
os.rmdir(delpath)
OSError: [Errno 38] Function not implemented: '/root/.cache/doc/by-app'
Error in execution of Command to delete /root/.cache/doc
Traceback (most recent call last):
File "/usr/share/bleachbit/bleachbit/Worker.py", line 83, in execute
for ret in cmd.execute(self.really_delete):
File "/usr/share/bleachbit/bleachbit/Command.py", line 84, in execute
FileUtilities.delete(self.path, self.shred)
File "/usr/share/bleachbit/bleachbit/FileUtilities.py", line 266, in delete
os.rmdir(delpath)
OSError: [Errno 16] Device or resource busy: '/root/.cache/doc'

BleachBit version: 
2.0
Your operating system: 
Linux Mint 19, Cinnamon

That is an unusual error. I wonder whether this is not a normal file. Could you try this command for troubleshooting and paste the results?

sudo stat /root/.cache/doc

While you're there, it would be interesting to see whether a normal delete works

sudo rm  /root/.cache/doc

---
Andrew, lead developer

ineuw's picture

Thanks for the reply. Here are the results. /doc was a folder, not a file so I modified the command. After deleting the folder, BB works fine.

ineuw@lm190dt:~$ sudo stat /root/.cache/doc
[sudo] password for ineuw:
File: /root/.cache/doc
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 805h/2053d Inode: 1179660 Links: 2
Access: (0700/drwx------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2018-11-21 09:37:06.328851933 -0500
Modify: 2018-11-21 09:37:06.328851933 -0500
Change: 2018-11-21 09:37:06.328851933 -0500
Birth: -

ineuw@lm190dt:~$ sudo rm /root/.cache/doc
rm: cannot remove '/root/.cache/doc': Is a directory

ineuw@lm190dt:~$ sudo rm -R /root/.cache/doc

Windows 10 Pro 64bit, and Linux Mint 19.1 64bit