Skip to content

UseRemoveFile

katanakit-js / useRemoveFile

function useRemoveFile(path): Promise<FilesystemResult<string>>;

Defined in: infrastructure/filesystem/filesystem.service.ts:477

Removes a file.

Parameter Type Description
path string File path to remove.

Promise<FilesystemResult<string>>

Safe Result with the removed path.

await useRemoveFile("data/cache/books.json");