Back to Expressjs

App Delete Method

_includes/api/en/4x/app-delete-method.md

latest397 B
Original Source
<h3 id='app.delete.method'>app.delete(path, callback [, callback ...])</h3>

Routes HTTP DELETE requests to the specified path with the specified callback functions. For more information, see the routing guide.

{% include api/en/4x/routing-args.html %}

Example

js
app.delete('/', function (req, res) {
  res.send('DELETE request to homepage')
})