The delete() method of the and, in a separate thread, deletes the specified record or records.
delete()
MDN Reference