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 Method | Delete |
---|---|
Path | /resource/{resource_id} |
Body | No body |