How to delete files and folders with ssh in linux terminal

To delete a whole folder and its content recursively, you can use:

“rm -rf foldername/”

To delete a file:

“rm file.txt”

To delete files start with specific chars:

“rm file**”

“rm file*.txt”

To delete folders starting with specific chars:

“rm -rf 2013**”;

This command will delete every folder starts with 2013