“cmd.ungroup” removes an object from a group object, returning it to the top level.
def ungroup(name, members="", quiet=1):
ungroup | cmd.group | api