Files
the-biergarten-app/archive/next-js-web-app/src/config/cloudinary/helpers/deleteImage.ts
2026-04-20 02:30:25 -04:00

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;