@oazmi/kitchensink - v0.9.13
    Preparing search index...

    Function removeEntry

    • deletes a filesystem-entry (file, folder, symlink) at the provided path, on system-bound runtimes (i.e. RUNTIME.DENO, RUNTIME.BUN, or RUNTIME.NODE). the return value dictates if anything was deleted.

      Note

      trying to remove a non-existing entry will not throw an error.

      Parameters

      • runtime_enum: RUNTIME

        the runtime enum indicating which runtime should be used for reading the filesystem.

      • path: string | URL

        the path to the filesystem entity that is to be deleted.

      • config: Partial<RemoveEntryConfig> = {}

        provide optional configuration on what _type_s of filesystem-entries should be deleted, and if folder type entries should be deleted recursively (i.e. delete child entries as well). see the RemoveEntryConfig interface for more details.

      Returns Promise<boolean>

      true if an entry (or a folder tree's entries) was deleted, otherwise false is returned when nothing is deleted.