Unable to delete a file in /data/data with root permissions I own a Moto G which is in 5.0.2 with KK bootloader. An app created a folder in /data/data which sustains in the memory even after uninstallation of the app. I couldn't remove the folder in any way.


I tried with Root browser, with terminal. Root browser says Deleted successfully. while trying to remove the folder, but it remains.
When I tried to remove it from terminal, it says rm: 00160eb4bb6a2325_0: No such file or directory, but it gets listed while using ls. This fails the nandroid backup with TWRP. :( Is there something I can do? Thanks in advance! :)


Edit: ls lists the file, but ls -l fails showing an error.
For delete folder /data/data/ [only for rooted devices]

Install adb tool:  [if already adb install than skip this step ] 

Notice that in this method you will only install the platform-tools like adb or fastboot.

1.1) Download:

Download the platform-tools for your OS from https://developer.android.com/tools/sdk/tools-notes.html
Unpack it to &lt;home-drive&gt;\platform-tools


1.2) Mount:

The following steps are for Windows. If you need a different OS like Linux or OSX, have a look at this answer: https://android.stackexchange.com/a/42475/91312


Copy the folder path.Open the Windows Explorer by pressing + E`.
Right-click on This Computer → Properties.
Advanced System Settings → Advanced → Environment Variables.
Variable PATH → Add a ; (Semicolon) &amp; your &lt;home-drive&gt;\platform-tools.
Save all &amp; close.


Commands for delete folder

 $ adb root

 $ adb remount

 $ adb rm -rf /data/data/&lt;folder-name&gt;


or

  $ adb shell

  $ su

  $ mount -o remount,rw /

  $ rm -rf /data/data/&lt;folder-name&gt;


I hope this help you.