Does “Delete inactive contacts” scheduled task excludes the contacts that have consent agreements from deletion operation or deletes them as well ?
Kentico provide the following options to delete contacts -
Refer the documentation - https://docs.xperience.io/k12sp/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/configuring-contacts/setting-up-automatic-deletion-of-contacts#Settingupautomaticdeletionofcontacts-Customizingautomaticcontactdeletionsettings
By default the scheduled task does NOT look at consent of a contact. However you can use the example Vasu shared to accomplish what you're looking for.
Please, sign in to be able to submit a new answer.