Remove directory, this command will only work if the folders are empty.

rmdir [options]… folder(s)…

Ignore each failure that is solely because the
directory is non-empty.
-p, –parents Remove explicit parent directories if being emptied
–verbose Output a diagnostic for every directory processed
–help Display help and exit
–version Output version information and exitExample

Before deleting with a wildcard, it&qt;&qt;s wise to echo the files first:

$ echo elvis?costello*.mp3

$ rm elvis?costello*.mp3

Tags: ,