What is it?
DELETE is an HTTP method commonly used to remove an existing resource.
Simple Definition: DELETE asks the system to remove something.
Software Knowledge → 03 · HTTP & APIs → DELETE
An HTTP method commonly used to remove a resource.
DELETE is an HTTP method commonly used to remove an existing resource.
Simple Definition: DELETE asks the system to remove something.
Think of DELETE as removing one record from a system.
DELETE can be used to remove:
DELETE requests can appear in:
Request removal of order 1001.
The backend may still apply validation and business rules before deletion is allowed.
DELETE requests often still pass through backend rules before data is removed.
Requests removal of a resource from the system.
May only hide something in the user interface.
| ENGLISH TERM | 中文 | SIMPLE ENGLISH | 中文小白理解 |
|---|---|---|---|
| DELETE | 删除 | An HTTP method commonly used to remove a resource. | 通常用于删除资源的 HTTP 方法。 |
| Resource | 资源 | The data or object being removed. | DELETE 请求希望删除的数据或业务对象。 |
| Endpoint | 接口地址 | The address identifying the resource to remove. | 用来标识需要删除哪个资源的 API 地址。 |
| Delete Operation | 删除操作 | An operation that removes data or a resource. | 从系统中移除数据或业务对象的操作。 |
| Validation | 校验 | Checking whether deletion is allowed. | 删除前检查是否满足系统要求。 |
| Business Logic | 业务逻辑 | Rules that may decide whether deletion is allowed. | 用来判断某条数据是否允许删除的业务规则。 |
| Database | 数据库 | The system where the resource may be stored. | 被删除资源可能实际保存的系统。 |
| Response | 响应 | The result returned after a delete request. | DELETE 请求处理完成后返回的结果。 |
| Soft Delete | 软删除 | Marking data as deleted without physically removing it. | 不真正移除数据,而是通过状态标记为已删除。 |
| Hard Delete | 物理删除 | Permanently removing the stored data. | 将数据从存储中真正删除。 |
DELETE is commonly used to remove a resource.
A DELETE request may still require validation and business rules.
Removing something from the screen is not always the same as deleting the data.