Hey there thank you for visiting here so mainly you need to login to your terminal for taking any kind of action.
Secondly suppose you have a file/folder called test.png or /test (Directory) simply type rm -rf test.png to delete that file same thing should be for folders as well.
Suppose in your home folder there is a file called test.png then
- We should type cd /home to go to that home directory
- We need to type ls to see the lists of files and folders then if you see test.png is there
- rm -rf test.png
This is StarLicense official blog page