deleteProject method

Future<Project> deleteProject({
  1. required String cloudProjectId,
  2. bool? keepEmptySubscription,
})

Archives a project and its capsule and permanently deletes its infrastructure on behalf of a user. Executes the same deletion code path as the regular deleteProject endpoint, but bypasses project-level authorization.

If keepEmptySubscription is true, the project's subscription is not terminated even if it has no more resource products.

Implementation

_i2.Future<_i3.Project> deleteProject({
  required String cloudProjectId,
  bool? keepEmptySubscription,
}) =>
    caller.callServerEndpoint<_i3.Project>('adminProjects', 'deleteProject', {
      'cloudProjectId': cloudProjectId,
      'keepEmptySubscription': keepEmptySubscription,
    });