This question is a logical continuation of How can I delete all files from a directory when it reports "Argument list too long"
I have
drwxr-xr-x 2 doreshkin doreshkin 198291456 Apr 6 21:35 session_data
I tried
find session_data -type f -delete
find session_data -type f | xargs rm -f
find session_data -maxdepth 1 -type f -print0 | xargs -r0 rm -f
The result is the same:
find: memory exhausted
What can I do to remove this directory?
rm -r
is probably the easiest option :)