This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

api.delete_resources, Cloudinary has no attribute 'api'

Comments

1 comment

  • Avatar
    Eric Pasos

    Hi James,

    The error message indicates that you have to import the cloudinary.api in your application, as shown in the code below:

    import cloudinary
    import cloudinary.api

    # Initialize cloudinary.config(...)
    ...
    cloudinary.api.delete_resources(["image1", "image2"])
    You can check this link for the demo example: https://www.anyfiddle.com/p/ecp_dev/5etus6ze
     
    Also, kindly refer to the following link for the Python SDK integration: https://cloudinary.com/documentation/django_integration
     
    Best regards,
    Eric
    0
    Comment actions Permalink

Post is closed for comments.