Removing Integration Associations from Content
Problem
You want to remove the association between an integration and a content item.
Solution
Get a content item, then use the content item’s oauth.associations.delete() method to delete the association.
from posit import connect
GUID = "a080baef-854e-411f-ac3c-d2bc47bcb109"
client = connect.Client()
content = client.content.get(GUID)
content.oauth.associations.delete()To confirm that the association was deleted follow the Finding Integrations Associated to Content recipe.
Call set_integrations() on a piece of content explicitly passing in NULL or an empty list to remove all associated integrations.
library(connectapi)
CONTENT_GUID <- "a080baef-854e-411f-ac3c-d2bc47bcb109"
client <- connect()
content <- content_item(CONTENT_GUID)
set_integrations(content, list())To confirm that the integrations are no longer associated with the content, call get_integrations(content) again on the content object.
See also
- For more details about the data returned in this recipe, see Set all OAuth integration associations in the API Reference.
- See OAuth Integrations in the User Guide to learn more about how publishers and viewers interact with OAuth integrations.
- See OAuth Integrations in the Admin Guide to for more detailed information on how to configure OAuth integrations.