Uninstall an app from one or many workspaces, or an entire enterprise organization. With an org-level token, enterprise_id or team_ids is required. https://docs.slack.dev/reference/methods/admin.apps.uninstall
(
self,
*,
app_id: str,
enterprise_id: Optional[str] = None,
team_ids: Optional[Union[str, Sequence[str]]] = None,
**kwargs,
)
| 274 | return self.api_call("admin.apps.restricted.list", http_verb="GET", params=kwargs) |
| 275 | |
| 276 | def admin_apps_uninstall( |
| 277 | self, |
| 278 | *, |
| 279 | app_id: str, |
| 280 | enterprise_id: Optional[str] = None, |
| 281 | team_ids: Optional[Union[str, Sequence[str]]] = None, |
| 282 | **kwargs, |
| 283 | ) -> SlackResponse: |
| 284 | """Uninstall an app from one or many workspaces, or an entire enterprise organization. |
| 285 | With an org-level token, enterprise_id or team_ids is required. |
| 286 | https://docs.slack.dev/reference/methods/admin.apps.uninstall |
| 287 | """ |
| 288 | kwargs.update({"app_id": app_id}) |
| 289 | if enterprise_id is not None: |
| 290 | kwargs.update({"enterprise_id": enterprise_id}) |
| 291 | if team_ids is not None: |
| 292 | if isinstance(team_ids, (list, tuple)): |
| 293 | kwargs.update({"team_ids": ",".join(team_ids)}) |
| 294 | else: |
| 295 | kwargs.update({"team_ids": team_ids}) |
| 296 | return self.api_call("admin.apps.uninstall", http_verb="POST", params=kwargs) |
| 297 | |
| 298 | def admin_apps_activities_list( |
| 299 | self, |