diff --git a/pycognito/__init__.py b/pycognito/__init__.py index bd28318a..00613367 100644 --- a/pycognito/__init__.py +++ b/pycognito/__init__.py @@ -934,6 +934,23 @@ def admin_update_identity_provider(self, pool_id, provider_name, **kwargs): **kwargs, ) + def delete_user_pool_client(self, pool_id=None, client_id=None): + """ + Deletes a user pool client + :param pool_id: The user pool ID (defaults to self.user_pool_id) + :param client_id: The client ID (defaults to self.client_id) + :return: + """ + if pool_id is None: + pool_id = self.user_pool_id + if client_id is None: + client_id = self.client_id + + self.client.delete_user_pool_client( + UserPoolId=pool_id, + ClientId=client_id, + ) + def describe_user_pool_client(self, pool_id: str, client_id: str): """ Returns configuration information of a specified user pool app client