mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-06-01 10:04:00 +00:00
12 lines
325 B
TypeScript
Vendored
12 lines
325 B
TypeScript
Vendored
import { cloudinary } from '..';
|
|
|
|
/**
|
|
* Deletes an image from Cloudinary.
|
|
*
|
|
* @param path - The cloudinary path of the image to be deleted.
|
|
* @returns A promise that resolves when the image is successfully deleted.
|
|
*/
|
|
const deleteImage = (path: string) => cloudinary.uploader.destroy(path);
|
|
|
|
export default deleteImage;
|