You can only delete one file at a time by API, by its ID.
Here’s a utility for deleting them all. It gets a list of all the files for one “files” purpose, and goes to work deleting them, about one per second.
Use with caution, as it WILL delete everything.