Cortex icon indicating copy to clipboard operation
Cortex copied to clipboard

How I can deleted a user present on GUI

Open rleal124 opened this issue 4 years ago • 2 comments

How I can deleted a user present on GUI I tried from command: curl -X DELETE "IP:9200/cortex_2/user/[user_mail]"

But i got the following error:

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Rejecting mapping update to [cortex_2] as the final mapping would have more than 1 type: [_doc, user]"}],"type":"illegal_argument_exception","reason":"Rejecting mapping update to [cortex_2] as the final mapping would have more than 1 type: [_doc, user]"},"status":400}r

rleal124 avatar Jan 26 '21 19:01 rleal124

Hi,

I don't know if this helps, but I had the same problem, rather than using: curl -X DELETE "IP:9200/cortex_2/user/[user]" try replacing user with _doc: curl -X DELETE "IP:9200/cortex_2/_doc/[user]"

it worked for me (thehive 3.5 and Cortex 3.1)

Regards

Waltyon avatar Mar 11 '21 13:03 Waltyon

Thanks I will try. Many thanks

rleal124 avatar Mar 11 '21 13:03 rleal124