def unlink_cohort_partition_group(cohort):
 CourseUserGroupPartitionGroup.objects.filter(course_user_group=cohort).delete()

def unlink_cohort_partition_group ( cohort ) : CourseUserGroupPartitionGroup . objects . filter ( course_user_group = cohort ) . delete ( )
remove any existing cohort to partition_id/group_id link .