VMware Cloud Community
SafetyMan
Contributor
Contributor

How to remove mutiple directories / delete directories Directory not empty

rmdir does not work very good....

returns the Error: rmdir:

    : Directory not empty

    USE THIS COMMAND

    rm * --recursive -f works just fine

    SEARCH ENGINE REFERENCE

    ====================

    deleting directories in linux

    deleting multiple directories in linus

    deleting esx directories

    delete all directories in a specified folder

    delet all files and directories in folder

    delete multiple folders

    Reply
    0 Kudos
    2 Replies
    Paul_Lalonde
    Commander
    Commander

    Thanks for the tip... this can be shortened to:

    rm -rf

      Paul

      Reply
      0 Kudos
      grasshopper
      Virtuoso
      Virtuoso

      lol... add monster.com to your search engine reference, if you make a typo on this command.

      Seriously though it should be noted that this is one of the most deadly linux commands, and could render your host useless if one isn't extremely cautious.

      Reply
      0 Kudos