-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## What does this PR do ? Add collection delete https://deploy-preview-1501--doc-kuzzle.netlify.com/api/controllers/collection/delete/ ### Other changes - do not list malformated esIndex created apart from Kuzzle (eg: `&nyc-open-data.`)
- Loading branch information
Showing
15 changed files
with
179 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
code: true | ||
type: page | ||
title: delete | ||
--- | ||
|
||
# delete | ||
|
||
Deletes a [collection](/core/2/guides/essentials/store-access-data). | ||
|
||
--- | ||
|
||
## Query Syntax | ||
|
||
### HTTP | ||
|
||
```http | ||
URL: http://kuzzle:7512/<index>/<collection> | ||
Method: DELETE | ||
``` | ||
|
||
### Other protocols | ||
|
||
```js | ||
{ | ||
"index": "<index>", | ||
"collection": "<collection>", | ||
"controller": "collection", | ||
"action": "delete" | ||
} | ||
``` | ||
|
||
--- | ||
|
||
## Arguments | ||
|
||
- `collection`: collection name | ||
- `index`: index name | ||
|
||
--- | ||
|
||
## Response | ||
|
||
Returns a confirmation that the collection is deleted: | ||
|
||
```js | ||
{ | ||
"status": 200, | ||
"error": null, | ||
"index": "<index>", | ||
"collection": "<collection>", | ||
"controller": "collection", | ||
"action": "delete", | ||
"requestId": "<unique request identifier>", | ||
"result": null | ||
} | ||
``` | ||
|
||
--- | ||
|
||
## Possible errors | ||
|
||
- [Common errors](/core/2/api/essentials/errors/handling#common-errors) | ||
- [PreconditionError](/core/2/api/essentials/errors/handling#preconditionerror) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.