If I needed to delete some files and folders using the shell, would I use the linux shell or the truenas cli shell? And what commands would I enter after opening the shell on the console?
The main ones would be cd to change directories and rm to delete files. But make it easier on yourself; run mc instead and you'll be able to navigate around, mark, and delete files without running commands at the shell.