Management commands
prune_cookie_consent_logs
python manage.py prune_cookie_consent_logs [--days DAYS]
Deletes LogItem records older than the
specified number of days.
Options
--days DAYSNumber of days to use as the cutoff. Log items created more than this many days ago will be deleted. Defaults to
90.
Example — delete log items older than 30 days:
python manage.py prune_cookie_consent_logs --days 30
This command is safe to run repeatedly.