You need to create a Discover, Compliance Remediate component template with "Unix User" part and in the compliance rule you need to add a condition
if Unix User exists then remediate and set a remediation blpackage. You can auto remediate also during your compliance job it automatically look for Unix User existence and if it exists it remediates the target with configured blpackage.
There are so many ways. Use NSHScripting or include pre-step in your BLPackage. But there is out of box, simple feature available.