Create a repository and enable repository healthcheck. ( Analyze button ) for that new repo.
Enabling Repository Healthcheck will create a system task specific to that repo called
System - Repository Health Check
Delete the repository.
Notice the System - Repository Health Check task is still present in the task list.
When a repository is deleted, immediately delete the associated Repository Health Check task for that repo.