As per design Alteryx Server retains all FAILED jobs in the Queue and Results collections even when we set the server to keep run history and results for x days
Purging records from Designer involves manual activity
Proposing the idea of purging these error records through automation script:
Step 1: Stop Alteryx Server
Step 2: Backup Mongo DB
Step 3: Replace big size files: AS_ResultsFiles.Files.bson, AS_Results.bson, AS_ResultsFiles.bson, AS_Queue.bson with Empty .bson files of same name in the backup/AlteryxService
Step 4: restore MongoDB from the backup (with the replaced files
Step 5: restart Alteryx service.