Skip to main content

deleteOrganization

@svenvw/fdm-source


@svenvw/fdm-source / fdm-core/src / deleteOrganization

Function: deleteOrganization()

deleteOrganization(fdm, owner_id, organization_id): Promise<void>

Defined in: fdm-core/src/organization.ts:884

Deletes an organization.

Parameters

fdm

any

The FDM instance providing the connection to the database.

owner_id

string

The ID of the user initiating the deletion (must be the owner).

organization_id

string

The ID of the organization to delete.

Returns

Promise<void>

Throws

Throws an error if any database operation fails, if the user initiating the deletion is not the owner, or if the organization is not found.