Python

Create a CRON job

The final step is to delete the call recordings every week using a CRON job. A CRON job is a way to run scripts periodically at fixed times, dates, or intervals. Running a CRON job will save you the effort of having to manually run the functions covered in this tutorial. You can create a CRON job locally by first running crontab -e on a OSX/Linux based system.

For a Windows machine:

  1. Log on with a privileged account, e.g. Administrator
  2. Go to Start > Control Panel > System and Security > Administrative Tools > Task Scheduler.
  3. In the right panel, click Create Basic Task.

For the purposes of this demonstration, the CRON job will run every 7 days:

bash * * 7 * * delete_recordings.py >/dev/null 2>&1

The delete_vbc_recordings.py is a script that will delete both the call recordings and on demand call recordings for calls that are older than 7 days.

To create your own CRON job, refer to this helpful resource.


Delete company call recordings by date

Delete call recordings and on-demand call recordings by a certain date.



Steps