You can try deleting by the API itself. First list files, obtaining file names to match up with the returned file IDs, then send a delete API call for the ID.
Here’s a basic Python utility for doing that. It is hard-coded for purpose:assistants. And doesn’t employ pretty pagination if you have 10000 files to list out.