I am using the new(ish) File System Access API and I need to delete a file. I was going to use the remove() method, but it is deprecated. Is there a currently supported function for deleting files in the File System Access API?
you should try this:
https://wicg.github.io/file-system-access/#api-filesystemdirectoryhandle-removeentry
The removeEntry() method