Delete files from directory: memory exhausted
- by codeholic
This question is a logical continuation of http://serverfault.com/questions/45245/how-can-i-delete-all-files-from-a-directory-when-it-reports-argument-list-too-lo
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?