Skip to content

Remove DELETE /index/type endpoint #5960

Closed
@dadoonet

Description

@dadoonet

Heya,

As we did it for #4481, it could be safe not to allow anymore removing a type using:

DELETE /index/type

But only allow:

DELETE /index/type/_mapping
DELETE /index/_mapping/type

It could happen that a user which have previously posted a new document deletes all documents by forgetting to provide the _id.

POST /index/type
{
 "foo" : "bar"
}

# Just change the VERB and you wipe every documents! 
DELETE /index/type
{
 "foo" : "bar"
}

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions