es:DeletePackage is a Write access-level action in the es service. Grants permission to delete a package from OpenSearch Service. The package cannot be associated with any domains
This action does not support resource-level permissions; use "Resource": "*" in your policy.
No condition keys are documented for this action.
A minimal policy that allows es:DeletePackage. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowEsDeletePackage",
"Effect": "Allow",
"Action": "es:DeletePackage",
"Resource": "*"
}
]
}