Dynamics CRM删除组织脚本

--MSCRM_CONFIG

select *
from Organization

// 最后一步,先要删除下面几张表里的关联
delete 
from Organization
where Id='A0478C59-9480-4E58-8C61-4447F3B8BCB9'


select *
delete
from OrganizationProperties
where Id='A0478C59-9480-4E58-8C61-4447F3B8BCB9'

select *
delete
from OrganizationFeatureMap
where OrganizationId='A0478C59-9480-4E58-8C61-4447F3B8BCB9'

select *
delete
from SystemUserOrganizations
where OrganizationId='A0478C59-9480-4E58-8C61-4447F3B8BCB9'

原文地址:https://www.cnblogs.com/cndota2/p/14515514.html