UseRemoveFile
katanakit-js / useRemoveFile
Function: useRemoveFile()
Section titled “Function: useRemoveFile()”function useRemoveFile(path): Promise<FilesystemResult<string>>;Defined in: infrastructure/filesystem/filesystem.service.ts:477
Removes a file.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
path |
string |
File path to remove. |
Returns
Section titled “Returns”Promise<FilesystemResult<string>>
Safe Result with the removed path.
Example
Section titled “Example”await useRemoveFile("data/cache/books.json");