I have a built a contact form and I want the recorder data to be automatically deleted on the 1st of the year.Any suggestion please?
You can just follow the custom scheduling task documentation. You need to create a custom class library project. There you can create the task. After referencing the project to your kentico webapp project you can create a new custom scheduled task in the CMS interface. https://docs.kentico.com/k12sp/configuring-kentico/scheduling-tasks/scheduling-custom-tasks
In the schedulded task you can check if the date of the form data record is in previous year, and delete the record if this is the case.
I think this could be done by creating a custom scheduled task in which you delete the form data you want to delete.
Arjan van Hugten , by the scheduling i will set date to delete the form data?
Any instructions of where i must add the task code?
Please, sign in to be able to submit a new answer.