There are more AWS SDK examples available in the AWS Doc SDK Examples
Use DeleteSAMLProvider
with an AWS SDK or CLI
The following code examples show how to use DeleteSAMLProvider
.
- CLI
-
- AWS CLI
-
To delete a SAML provider
This example deletes the IAM SAML 2.0 provider whose ARN is
arn:aws:iam::123456789012:saml-provider/SAMLADFSProvider
.aws iam delete-saml-provider \ --saml-provider-arn
arn:aws:iam::123456789012:saml-provider/SAMLADFSProvider
This command produces no output.
For more information, see Creating IAM SAML identity providers in the AWS IAM User Guide.
-
For API details, see DeleteSAMLProvider
in AWS CLI Command Reference.
-
- JavaScript
-
- SDK for JavaScript (v3)
-
Note
There's more on GitHub. Find the complete example and learn how to set up and run in the AWS Code Examples Repository
. import { DeleteSAMLProviderCommand, IAMClient } from "@aws-sdk/client-iam"; const client = new IAMClient({}); /** * * @param {string} providerArn * @returns */ export const deleteSAMLProvider = async (providerArn) => { const command = new DeleteSAMLProviderCommand({ SAMLProviderArn: providerArn, }); const response = await client.send(command); console.log(response); return response; };
-
For API details, see DeleteSAMLProvider in AWS SDK for JavaScript API Reference.
-
- PowerShell
-
- Tools for PowerShell
-
Example 1: This example deletes the IAM SAML 2.0 provider whose ARN is
arn:aws:iam::123456789012:saml-provider/SAMLADFSProvider
.Remove-IAMSAMLProvider -SAMLProviderArn arn:aws:iam::123456789012:saml-provider/SAMLADFSProvider
-
For API details, see DeleteSAMLProvider in AWS Tools for PowerShell Cmdlet Reference.
-