I have this folder in Ubuntu 18.04 that I completely removed.
sudo rm -rf folder_name
It has been deleted, but after a while, the folder comes back, but only with the .cache directory in the folder. It takes about 1 minute until the folder comes back with only the .cache folder in the folder that I want to delete.
I change the permission of the both the .cache folder and the folder itself, deleted them, but it keeps coming back. I also deleted everything piece by piece.
There is also in the .cache folder a pgdata folder.
 Yeah so I was able to finally delete it. As someone pointed out, a process was creating that folder in the background. It was a docker container.