Exclua registro php mysqli

<?php
  //Deleteing using DELETE 
  $id = 1;
  $query = "DELETE FROM records WHERE record_id='$id'";
  mysqli_query($connection, $query);
?>
Delightful prog.