how to delete files in directory linux code example
Example 1: delete a directory bash script
rmdir dirname
Example 2: delete all files with specific name ubuntu
find -type f -name '*text*' -delete
rmdir dirname
find -type f -name '*text*' -delete