• jimmydoreisalefty@lemmy.world
    link
    fedilink
    arrow-up
    32
    arrow-down
    2
    ·
    edit-2
    10 months ago

    edit: spacing, added -rf info

    The Linux rm Command: Everything You Need to Know

    There’s more to rm than meets the eye.

    https://www.howtogeek.com/858815/linux-rm-command/


    Use rm -rf to Delete Everything

    If you absolutely need to delete anything and everything, just use the command:

    rm -rf

    That combines the -f flag, which forces deletion, with the -r flag, which will delete folders recursively. We previously included the -v argument (to make it verbose), but it isn’t necessary. Just keep in mind that this is basically the nuclear option, and you shouldn’t use it unless you’re absolutely sure you want something gone forever.