ElasticsearchService / Client / delete_elasticsearch_service_role
Deletes the service-linked role that Elasticsearch Service uses to manage and maintain VPC domains. Role deletion will fail if any existing VPC domains use the role. You must delete any such Elasticsearch domains before deleting the role. See Deleting Elasticsearch Service Role in VPC Endpoints for Amazon Elasticsearch Service Domains.
See also: AWS API Documentation
response = client.delete_elasticsearch_service_role()