I think you understand the use of the DELETE query, but PUT is a slightly different thing.
If I create a new resource on the server, and if the URI through which it will be available is decided by me, then I will go to PUT . In most cases, the URI is determined by the server and, therefore, POST is suitable for creation and PUT usually for updating.
The final thing, for example GET , both DELETE and PUT are idempotent, means how many times the client sends requests in turn, the server status must be changed in the same way as in the first request.
Vjai
source share