app.delete(path, callback [, callback ...])
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
app.delete('/', (req, res) => {
res.send('DELETE request to homepage');
});