Search code examples
javascripthtml5-filesystemnative-file-system-api-js

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

  • you should try this:

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

    The removeEntry() method