Skip to contents

Delete a secret

Usage

aws_secrets_delete(id, ...)

Arguments

id

(character) The name or ARN of the secret. required

...

further named parameters passed on to delete_secret https://www.paws-r-sdk.com/docs/secretsmanager_delete_secret/

Value

(list) with fields:

  • ARN

  • Name

  • DeletionDate

Examples

if (FALSE) { # \dontrun{
# Does exist
aws_secrets_delete(id = "MyTestDatabaseSecret")

# Does not exist
# aws_secrets_get(id = "DoesntExist")
#> Error: ResourceNotFoundException (HTTP 400). Secrets Manager
#>   can't find the specified secret.
} # }