Skip to content

Commit 52b4f11

Browse files
author
serverpod_cloud
committed
feat(admin): 1889dd90ece4b423ed61e968dea42d68431a8034
1 parent 201f4c6 commit 52b4f11

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ground_control_client/lib/src/protocol/client.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,14 @@ class EndpointAdminProjects extends _i1.EndpointRef {
198198
{'cloudCapsuleId': cloudCapsuleId, 'limit': limit},
199199
);
200200

201+
/// Deletes a project permanently on behalf of a user.
202+
/// Executes the same deletion code path as the regular deleteProject endpoint,
203+
/// but bypasses project-level authorization.
204+
_i2.Future<_i3.Project> deleteProject({required String cloudProjectId}) =>
205+
caller.callServerEndpoint<_i3.Project>('adminProjects', 'deleteProject', {
206+
'cloudProjectId': cloudProjectId,
207+
});
208+
201209
/// Redeploys a capsule using its current image.
202210
/// Triggers a deploymentUpdated event to redeploy the infrastructure.
203211
_i2.Future<void> redeployCapsule(String cloudCapsuleId) =>

0 commit comments

Comments
 (0)