How  can i delete directorry

Posted on 2005-05-10
Last Modified: 2012-05-05
How  can i delete directorry (all file and subdirectory) Inside that directory?
Question by:teera
    LVL 33

    Accepted Solution

         rm -fr dirname
        This will remove weverything inside the main dirextory.Be carefull of using this.
    LVL 2

    Expert Comment

    rm -rf directoryname

    This command will remove (all files and subdirectory) Inside that directory.
    LVL 10

    Assisted Solution

    rm -rf <directory name>
    rm: means remove
    -r: recursive
    f: force

    For more help try: man rm
    LVL 2

    Assisted Solution


    /bin/rm -rf <directory name with full path>

    warning: -r is recursive and -f will not ask you any confirmation to delete.

    LVL 8

    Expert Comment

    select it in gnome or kde and press delete :)
    use midnight commander for a cli file manager (type mc at the $ prompt)
    or type what has been suggested by a whole bunch of people allready couple of

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now