script that deletes all files with the same extension..

hi,

i’m just trying to figure out a script that removes all files with the same extension (*.backup, *.rsc) . but nothing worked yet..

file rem [/file find name=(“*”.backup")]; but it doesnt work..

anyone can do what can i do?

/file remove [/file find where name~"extension\$"]

should work.