# Deleting

Deleting: Deleting Safely: rm and rmdir.

Updated: November 10, 2026

1. [Deleting Safely: rm and rmdir](https://www.ask-codey.com/lessons/bash-deleting-safely) (Novice): rm deletes files for good, with no trash can to undo it, so you check the same names with ls first, let rm -i ask about each file, and use rmdir for empty folders and rm -r only after looking inside.

Source: https://www.ask-codey.com/courses/bash-in-depth/topics/bash-deleting
