diff --git a/api/v1/environments.go b/api/v1/environments.go index c6f86f2..4a489e3 100644 --- a/api/v1/environments.go +++ b/api/v1/environments.go @@ -129,7 +129,7 @@ func (e *EnvironmentsServer) Delete(ctx context.Context, in *proto.DeleteOptions Data: data, Token: in.GetToken().GetToken(), } - err := environment.Create(ctx) + err := environment.Delete(ctx) if err != nil { return nil, err }