func DelAllResources(nsId string, resourceType string, forceFlag string) error {

	err := common.CheckString(nsId)
	if err != nil {
		common.CBLog.Error(err)
		return err
	}

	resourceIdList, err := ListResourceId(nsId, resourceType)
	if err != nil {
		return err
	}

	if len(resourceIdList) == 0 {
		return nil
	}

	for _, v := range resourceIdList {
		err := DelResource(nsId, resourceType, v, forceFlag)
		if err != nil {
			return err
		}
	}
	return nil
}
// DelAllResources deletes all TB MCIR object of given resourceType
DelAllResources deletes all TB MCIR object of given resourceType
// DelAllResources deletes all TB MCIR object of given resourceType
func DelAllResources(nsId string, resourceType string, forceFlag string) error {
	err := common.CheckString(nsId)
	if err != nil {
		common.CBLog.Error(err)
		return err
	}
	resourceIdList, err := ListResourceId(nsId, resourceType)
	if err != nil {
		return err
	}
	if len(resourceIdList) == 0 {
		return nil
	}
	for _, v := range resourceIdList {
		err := DelResource(nsId, resourceType, v, forceFlag)
		if err != nil {
			return err
		}
	}
	return nil
}
func DelAllResources ( nsId string , resourceType string , forceFlag string ) error { err := common . CheckString ( nsId ) if err != nil { common . CBLog . Error ( err ) return err } resourceIdList , err := ListResourceId ( nsId , resourceType ) if err != nil { return err } if len ( resourceIdList ) == 0 { return nil } for _ , v := range resourceIdList { err := DelResource ( nsId , resourceType , v , forceFlag ) if err != nil { return err } } return nil }
DelAllResources deletes all TB MCIR object of given resourceType
DelAllResources deletes all TB MCIR object of given resourceType