Piping Results to remove, etc. using API

Hi,

In the terminal you can do something like the following:

/file remove [find type="backup"]

which works perfectly. Is there anyway to do this using the API?

/file/remove
?type="backup"

doesn’t seem to work.

Thanks a lot.