Skip to content

Delete User Group

This endpoint permanently deletes a user group by ID.

DELETE /v1/user-groups/user-groups/:id

Include your API key in the x-api-key header. See Authentication.

user-groups:write
ParameterTypeRequiredDescription
idstringYesUser group ID to delete.

This endpoint does not accept a request body.

Terminal window
curl -X DELETE "https://api.crewsum.com/v1/user-groups/user-groups/36b735f8-4dd7-4c3c-836f-35d2fe84e872" \
-H "x-api-key: $CREWSUM_API_KEY"

On success, the API returns HTTP 200 OK.

{
"message": "Successfully deleted user group"
}
  • This is a hard delete. The group, its memberships, and its project and task assignments are removed.
  • Users in the group are not deleted. They lose the project and task assignments they received through the group. Their direct assignments are not changed.
StatusMeaning
400"User group ID not found": the ID path segment was empty.
500"Error deleting user group": returned for every other failure, including an unknown group ID.

Authentication and scope failures are described in Errors.

This endpoint does not trigger a webhook.