MCPcopy Create free account
hub / github.com/Scalingo/cli / Remove

Function Remove

projects/remove.go:11–25  ·  view source on GitHub ↗
(ctx context.Context, projectID string)

Source from the content-addressed store, hash-verified

9)
10
11func Remove(ctx context.Context, projectID string) error {
12 client, err := config.ScalingoClient(ctx)
13 if err != nil {
14 return errors.Wrap(ctx, err, "get Scalingo client")
15 }
16
17 err = client.ProjectDelete(ctx, projectID)
18 if err != nil {
19 return errors.Wrap(ctx, err, "delete project")
20 }
21
22 io.Status(projectID, "has been removed")
23
24 return nil
25}

Callers 1

projects.goFile · 0.92

Calls 2

ScalingoClientFunction · 0.92
StatusFunction · 0.92

Tested by

no test coverage detected