This topic describes how to delete an existing Child Business Manager.
Note: Depending on if appsecret_proof is enabled on your app's settings, appsecret_proof might be needed as a parameter to each call you make. Refer to Securing Graph API Requests doc for how to set this option and how to generate appsecret_proof.
curl \ -F 'id=<CHILD_BM_ID>' \ -F 'app_id=<APP_ID>' \ -F 'scope=ads_management,business_management' \ -F 'access_token=<PARENT_BM_ADMIN_SYSTEM_USER_ACCESS_TOKEN>' \ -F 'appsecret_proof=<APP_SECRET_PROOF>' \ // Optional, depending on your app's security settings https://graph.facebook.com/<API_VERSION>/<CHILD_BM_ID>/access_token
PAUSED
. Otherwise, any delete call to a Child Business Manager with active campaigns under it won't succeed.curl -G \ -d 'access_token=<CHILD_BM_SYSTEM_USER_ACCESS_TOKEN>' \ -d 'appsecret_proof=<APP_SECRET_PROOF>' \ // Optional, depending on your app's security settings https://graph.facebook.com/<API_VERSION>/<CHILD_BM_ID>/owned_ad_accounts
curl -G \ -d 'access_token=<CHILD_BM_SYSTEM_USER_ACCESS_TOKEN>' \ -d 'appsecret_proof=<APP_SECRET_PROOF>' \ // Optional, depending on your app's security settings https://graph.facebook.com/<API_VERSION>/<act_AD_ACCOUNT_ID>/campaigns
curl \ -F 'status=PAUSED' \ -F 'access_token=<CHILD_BM_SYSTEM_USER_ACCESS_TOKEN>' \ -F 'appsecret_proof=<APP_SECRET_PROOF>' \ // Optional, depending on your app's security settings https://graph.facebook.com/<API_VERSION>/<CAMPAIGN_ID>/
curl -X DELETE \ -d 'client_id=<CHILD_BM_ID>' \ -d 'access_token=<PARENT_BM_ADMIN_SYSTEM_USER_ACCESS_TOKEN>' \ -d 'appsecret_proof=<APP_SECRET_PROOF>' \ // Optional, depending on your app's security settings https://graph.facebook.com/<API_VERSION>/<PARENT_BM_ID>/owned_businesses