Deleting the Shopping List

To delete the Shopping List, we need to make the DELETE request to the /shopping_lists endpoint followed by the ID of the shopping list in the URL that we want to delete. It will just respond with an OK status without any Response if the Shopping List is deleted correctly:

Get Hands-On Full-Stack Development with Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.