RefirebaseRefirebase

delete

Delete a file from Storage.

Usage

Permanently removes the specified file. Throws an error if the deletion fails.

Example
import { db } from 'refirebase';

await db.storage.delete('images/old-photo.png');

Parameters

ParamTypeDescription
filePath*stringThe path to the file in Storage.

Return value

Returns

Promise<void>

A promise that resolves when the file is deleted.