如何在15天后自动删除数据库中的一行数据?

i want the site(if possible the database itself) to delete a row data in the database, without interacting with the site like opening or loading it.

i searched some tutorials/post but i only saw codes that need to be interacted.

Thanks.

Sorry for the bad English.

If you don't have access to cronjob you could run a small script at the bottom of a website. With the script, you check when the script was last run and if it's 15 days ago, check the dates of the rows in the database.

But, cronjob is easier, better and preferred.

Run a cronjob or other scheduled process on your server

You need to record the date that the entry was made in the db. Then write a script that would run as a cron job to check the dates of rows in the table and delete if it is up to 15 days