Skip to main content

Delete

Delete is an API to delete a resource. The delete can also detach a resource from another resource. For example, we have “Class” resource and it has many “Student” resource. To attach a student to a class, we can make a Store request to the Class resource with no body. The request will be look like this:

[DELETE] https://host/class/{class_id}/student/{student_id}

Request

HTTP MethodDelete
Path/resource/{resource_id}
BodyNo body