unlink illegal instructions before deleting them