Back to Expressjs

App Delete Method

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

latest391 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/5x/routing-args.html %}

Example

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