You might want to try moving all the non-related files …

Comment on How to delete million of files on busy Linux servers (Work out Argument list too long) by frog.

you might want to try moving all the non-related files outside the directory, and give it one shot: rm -rf DIR

frog Also Commented

How to delete million of files on busy Linux servers (Work out Argument list too long)
a even better way is: write a tool in c to remove the files, you can hard-encode the direcory path in the code, and sleep periodically, to avoid stressing the server.


Share this on

No Responses to “You might want to try moving all the non-related files …”

  1. Mr WordPress says:
    Unknown Unknown Unknown Unknown

    Hi, this is a comment.
    To delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them.

    View CommentView Comment