Created
November 23, 2019 14:55
-
-
Save mikevercoelen/4b4d83d494c409439f5d5897a70904e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const removeImage = publicId => new Promise((resolve, reject) => { | |
cloudinary.v2.uploader.destroy(publicId, error => { | |
if (error) { | |
return reject(error) | |
} | |
resolve() | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment