Skip to content
0

katanakit-js / useRemoveFile

Function: useRemoveFile() ​

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

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

Removes a file.

Parameters ​

ParameterTypeDescription
pathstringFile path to remove.

Returns ​

Promise<FilesystemResult<string>>

Safe Result with the removed path.

Example ​

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

Released under the MIT License.