DELETE method from JavaScript
The DELETE request is sent via JavaScript fetch when the button is clicked.