You could also concatenate the id to the URL string:
const id = someId; const response = await request.delete('/public/v2/users/' + id);