(ctx context.Context, projectID string)
| 9 | ) |
| 10 | |
| 11 | func 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 | } |
no test coverage detected