How-To

Master the macOS command line: How to delete files and folders using Terminal

The command line is powerful, but also dangerous.
macOS Big Sur Terminal icon
Apple