Temporary Configuration

My friend is asking me to make my configuration to have a trial ex: 15 days and will will expire or will now work anymore.

how can i achieved this?

Create a script to disable or erase the wan config or the entire config.
Schedule a script to start 16 days after the deployment.