The Delete action method is marked with the HttpDelete attribute. It usually accepts the identifier of the resource to remove.
In real-world applications, Delete action methods do not perform physical delete operation on the database. They actually carry out update operations. Real-world applications and web services typically perform soft deletes instead of physical deletes because it is essential to keep track of historical data and information that's stored by our services. If we think about an e-commerce application, for example, it would be crucial to keep track of orders that have been dispatched by our system. Soft deletes are usually implemented using an isDeleted flag or an object that represents the status of ...