Question · Angular course · Module 9: HttpClient

Method for Deleting a Resource

Which HttpClient method will you use to delete a samurai with a given id from the server?

Answer options

  • this.http.remove(url)
  • this.http.delete(url)
  • this.http.destroy(url)
  • this.http.post(url, null)

You can check the correct answer by solving this task in the CodeWorlds game.