I am creating a code so that at the end of the day it allows me to erase all the data that is stored in it, they would be deleted manually by means of a truncate. But at the time of executing the php this does not erase the data. Some information is missing (ignoring the connection).
<php
$link = mysqli_connect("localhost", "usuario", "********");
mysqli_select_db($link, "base_de_datos");
mysqli_query($link, "TRUNCATE TABLE tickets");
?>