deleteDuplicatedImage
talawa-api • Docs
talawa-api / utilities/deleteDuplicatedImage / deleteDuplicatedImage
Function: deleteDuplicatedImage()
> deleteDuplicatedImage(imagePath
): void
Deletes a duplicated image file using fs.unlink().
Parameters
• imagePath: PathLike
The path to the image file to delete.
Returns
void
Throws
Throws an error if deletion fails.