Deleting Integrations
Problem
You want to delete an integration.
Solution
Warning
You must have administrator privileges to delete an integration.
Use the integration GUID or follow the Finding Integrations recipe to get an integration, then use its delete()
method.
from posit import connect
= "341626ec-b141-42f7-87bf-cc69029c77b9"
GUID
= connect.Client()
client = client.oauth.integrations.get(GUID)
integration integration.delete()
Follow the Finding Integrations recipe to get the integration’s GUID, then use the connectapi
client to make a direct call to the integrations endpoint.
library(connectapi)
<- "341626ec-b141-42f7-87bf-cc69029c77b9"
GUID
<- connect()
client <- get_integration(client, GUID)
integration delete_integration(integration)
The function invisibly returns NULL
on success, and throws an error if it fails.
Discussion
Deleting an integration will also delete all sessions and remove all associations to content items. To remove an association from a single content item see the Removing Integration Associations from Content recipe.
See also
- For more details about the data returned in this recipe, see Delete an OAuth integration 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.