I need to delete thousands of files that have similar names but different endings. They were created by malware that attacked a client's shared hosting and infected multiple wordpress sites. I'm using SSH in place of the cPanel file manager because it won't let me delete that many files at once.
The files are all named work.php.xxxx The x's represent numbers between 0 - 9999
i.e "work.php.2048" They are all in one folder.
Is there an SSH command that would allow me to delete them and only them in mass?
This is different from the suggested duplicate because the files all have unique endings after the .php extension, the suggested solution to that problem would not work for me.