Interface IOrganizationSubAccountResource
- Namespace
- Mailtrap.Organizations
- Assembly
- Mailtrap.Abstractions.dll
Represents organization sub account resource.
public interface IOrganizationSubAccountResource : IRestResource
- Inherited Members
Methods
Delete(CancellationToken)
Deletes the sub account, represented by the current resource instance.
Task Delete(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenToken to control operation cancellation.
Returns
- Task
Nothing is returned upon successful deletion.
Remarks
Requires organization admin permissions.
The organization must have the Organization & Sub-accounts feature enabled; otherwise the call fails with 403 (Forbidden).
Deletion is permanent and removes all data of the sub account.
Deleting the last sub account of the organization deletes the organization as well.
After deletion the sub account is no longer available, so a repeated call results in a 404 (Not Found) error.
A concurrent deletion of the same sub account fails with 409 (Conflict).
The operation is rate limited to 10 requests per minute per organization.