How to List all the Same Files and Delete Them unde Second Level?

find . -name ‘install.php’ -type f -print
With this centos command, we can get all the same file – install.php, but what we get is the install.php under all subfolders.

find . -name ‘install*.php’ -type f -print -exec rm -rf {} \;
With this centos command, we can get all install.php and all subfolders and delete all install.php.

$ ls ./*/install.php -1
With the centos command, we can get all install.php which is under the first level subfolders of the current folder.

$ ls ./*/install.php -1 | xargs rm
With the centos command, we can get all install.php which is under the first level subfolders of the current folder, and delete them all.