Try rmdir [target] or rd for short
How can I delete folders?
I tried help command but i couldn't understand much
Can't remember for sure, but the directory may have to be empty before it will work. It may just give you a warning if not.
(Directory is the DOS word for folder)
First, DOS is actually a PC operating system, made popular by MS-DOS back in 1853. What you're running on is Terminal, running Bash, or Csh over Mac os X, but that really doesn't matter at all.
Anyway, rmdir works if the directory is empty, but if you want to remove a directory and its contents, you can use a somewhat volatile command that makes the job quicker.
Find the folder you're looking to destroy, and type:
rm -rf foldername/
Be VERY careful using the command, its notorious for ruining peoples lives.