Hello.
I have an delete button in the index.php page like this.
/form
form method="POST" action="deleteall.php"
input type="submit" value="delete" name="delete"
/form
I send it to deleteall.php and there i want to clear the json-file “todolist.json” to an empty array.
How do i do this?