Removing uploaded media

Hey all,

If I upload media for say a version with sg.upload(), and then later want to remove that media, actually delete it from the SG server, how would I go about doing that in the API?  Do I just delete the attachment?

1 条评论

  • 0

    Hi John, I mentioned this in your support ticket, but posting here for the general public.  Yes, you can just delete the attachment using the delete() method.  If the movie was transcoded, the Version would have three attachments that you'd want delete - sg_uploaded_movie, sg_uploaded_movie_mp4, and sg_uploaded_movie_webm.  Once these files are retired, they will no longer count against your hosted disk space quota.