Help Center> Cloud Search Service> Troubleshooting> Functions> Error Message "403 Forbidden" Is Displayed When I Delete All Indexes
Updated on 2023-02-02 GMT+08:00

Error Message "403 Forbidden" Is Displayed When I Delete All Indexes

Symptom

When I run the curl –i –u admin:password –XDELETE https://ip:9200/_all command (password is the admin account password and ip is the private network address of the cluster) to delete all indexes, the error message "403 Forbidden" is reported.

Solution

The index .opendistro_security cannot be deleted from a security cluster. The command for deleting all indexes is invalid for clusters in the security mode. Use the index name or wildcard to delete specified indexes. Do not delete all indexes at a time.