Hanzo AI
OpenapiPlatform

Delete projects

Folds a project into another. An app always belongs to exactly one project, so a project ends by moving its apps: `into` names the existing project they…

DELETE /v1/platform/projects/{project}

Addresshttps://api.hanzo.ai/v1/platform/projects/{project}
MethodDELETE
Operationdelete_platform_projects_by_project
AuthAuthorization: Bearer $HANZO_API_KEY

Folds a project into another.

An app always belongs to exactly one project, so a project ends by moving its apps: into names the existing project they move to, and the project is gone once no file names it. One commit to hanzoai/universe; mode as for create. 404 when into is not a project.

Request

4 fields.

FieldInTypeRequiredDescription
projectpathstringyesProject is the project to delete, from the path.
intoquerystringInto is the existing project its apps move into.
orgquerystringOrg names the projects' owner, defaulting to the caller's own scope.
modequerystringMode is branch (the default) or commit.

Response

StatusBodyMeaning
200platform.projectWriteok
defaultproblem-detailsrefused

200 body — 11 fields.

FieldInTypeAlwaysDescription
commitbodystringCommit is the sha the change created, "" when nothing had to move.
livebodybooleanLive says whether the generator will see it: true only on main.
modebodystringMode is branch (a review; nothing deploys) or commit (main).
movedbodyplatform.relabel[]Moved are the declarations whose partOf moved, and from what.
moved[].frombodystring
moved[].namebodystring
moved[].orgbodystring
moved[].tobodystring
projectbodystringProject is the project the change leaves the moved apps in.
refbodystringRef is the branch the change was pushed to, main for a commit.
reviewbodystringReview is where to open the pull request for a branch.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Platform API · All Hanzo APIs · Interactive reference

How is this guide?

On this page