I want to create button delete all records in tables database with php

I think you need to expand your question. Here's a tutorial about truncate and drop table:
https://www.w3schools.com/sql/sql_ref_drop_table.asp

But then your tag includes phpMyAdmin so I would be guessing if this is about phpMyAdmin , PHP or something else entirely.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.