Delete a Child Business Manager

This topic describes how to delete an existing child Business Manager and how to delete the credit card payment method.

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.

Delete an Existing Child Business Manager

  1. Fetch the child Business Manager's system user access token.
  2. curl \
      -F 'id=<CHILD_BM_ID>' \
      -F 'app_id=<APP_ID>' \
      -F 'scope=ads_management,business_management' \
      -F 'access_token=<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
  3. Fetch all ad accounts for the child Business Manager.
  4. Once you fetch the ad account, mark all campaigns under them as PAUSED. Otherwise, any delete call to a child Business Manager with active campaigns under it won't succeed.
  5. curl -G \
      -d 'access_token=<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=<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=<ACCESS_TOKEN>' \
      -F 'appsecret_proof=<APP_SECRET_PROOF>' \  // Optional, depending on your app's security settings
      https://graph.facebook.com/<API_VERSION>/<CAMPAIGN_ID>/
  6. Delete the child Business Manager.
  7. curl -X DELETE \
      -d 'client_id=<CHILD_BM_ID>' \
      -d 'access_token=<Parent BM Admin Token (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