'Alternative to deprecated FileSystemEntry.remove() function?

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?



Solution 1:[1]

you should try this:

https://wicg.github.io/file-system-access/#api-filesystemdirectoryhandle-removeentry

The removeEntry() method

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 vfbraton