in the link set (Requires permission PERMISSION_CHANGE_LINKS
Q: Can I delink a prim from an attachment?
Q: Do I need to call llBreakAllLinks from the root prim in order for this to work?
A: No, as long as it has PERMISSION_CHANGE_LINKS set, any script in any prim may break the link. You cannot grant permissions to one script and have another act upon those permissions, however. Scripts must request their own permissions.
To delink a single prim from the linkset, use llBreakLink
This article wasn't helpful for you? Maybe the related article at the LSL Portal
is able to bring enlightenment.