Examples of how to delete assets from Cloudinary using the Node.js SDK
- Run
npm install
. - Create a .env file in the root of the project.
- Copy your API environment variable from your Cloudinary console dashboard and paste it into the .env file.
- Run
node uploadFiles.js
to populate your product environment with some images and videos. - Uncomment one of the delete commands from deleteFiles.js and run
node deleteFiles.js
.