Error code 500 trying to delete images from media library in Strapi dashboard

My code is in production. I tried most fixes but want to be sure this is a guaranteed fix before i lose all my assets. Do I comment out the Cloudinary config, then restart the server, and add the Cloudinary config again?