-
Book Overview & Buying
-
Table Of Contents
RavenDB 2.x Beginner's Guide
By :
The DELETE verb asks the server to delete the resources. This will instruct RavenDB to delete the JSON document specified by the URL. It is important to note that deleting a document through the HTTP API is not reversible and has to be considered as a "hard" delete.
To avoid potential data loss, you can use a soft delete and there are multiple ways to do that. You may choose to move the existing documents to another database, or to mark a document with a deleted flag and then ignore documents like this in your business logic.
If the document we want to delete exists on the server or it doesn't exist, a DELETE request will still respond with a successful status code.
|
HTTP Method |
On Success |
|---|---|
|
DELETE |
HTTP/1.1 204 No Content |
Change the font size
Change margin width
Change background colour