Altium: Component Clearance constraint won't go away after setting rule
You have another rule defined.
From your first image you can see the violated rule has the name &quot;ComponentClearance&quot; which I guess is set to match all objects.
Check your rules again for duplicated rules with different names, I also would suggest checking your rule priorities.
Remove/edit the rule with the name &quot;ComponentClearance&quot; or set it to a lower priority, and you should be fine.