Delete a unit

​

By default the unit is only deleted when no other resources depend on it; if it has registrations or transcripts the request fails with 406 listing the dependencies. Passing force=true permanently deletes the unit and its dependent data — registrations, transcripts, and sessions — and removes references to it from study plans, budgets, profiles' roles, segments, automations, and applications. This is irreversible; call without force first to inspect dependencies.

Path Parameters

  • Unique identifier of the unit.

Query Parameters

  • When true, permanently deletes the unit even when registrations or transcripts depend on it, removing them together with the unit and its sessions.

Headers

  • API version this request targets, for example "2021-04-13".

Responses

  • application/json
  • application/json
  • application/json
  • application/json
Request Example for delete/apis/units/units/{unit_id}
curl 'https://school.fullfabric.cloud/apis/units/units/507f1f77bcf86cd799439011?force=false' \
  --request DELETE \
  --header 'X-API-Version: 2021-04-13' \
  --header 'FF-Auth: YOUR_SECRET_TOKEN'
{}