The commands you specified will **delete the files permanently**.

You can install `trash` with `brew install trash` in order to send files to the trash bin.