Just to understand this. The correct usage of the code to return the error is not @error. The function return zero for success and the errorcode if it fails according to the manual.

So could you run this code and tell me what happens?

? "KiXtart version: " +@kix
$rc = DelProgramGroup("Sentry Spelling Checker Engine", 0) = 0
If $rc = 0
? "Spell Checker Program Group Deleted...."
? "DelProgramGroup ERROR: " + $rc
Home page: http://www.kixhelp.com/hb/