How to delete resources using REST API ? Can we use GET/POST to delete resources, if not why?


We can use DELETE method of HTTP/HTTPS protocol to delete the resources using REST API. We cannot use POST/GET methods to delete the resources as it creates confusion ,because GET method is normally used to fetch data and POST method is normally used to submit the data and create new resources, and further if the url is mistakenly exposed as simple links to any bot/crawler it will simply delete the resources.

Share this thread


comments powered by Disqus


Social Media