Skip to content
gist.link ↗

deleteProjectFile

Mutation Deploy API — POST https://deploy.api.gist.link/graphql

Delete one file from the project’s sandbox working copy. ROLE_ADMIN or ROLE_DEPLOY_MANAGER.

deploy:mutation:deleteProjectFile

The calling IAM key must hold this permission (or a wildcard that covers it: deploy:mutation:* or deploy:*) and the access token must have been minted with audience=deploy. See Permissions.

type Mutation {
deleteProjectFile(projectId: Int!, path: String!): Boolean!
}
Argument Type Required Description
projectId Int! Yes —
path String! Yes —

Boolean!.

Terminal window
curl https://deploy.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation DeleteProjectFile($projectId: Int!, $path: String!) { deleteProjectFile(projectId: $projectId, path: $path) }",
"variables": {
"projectId": 10,
"path": "example"
}
}
JSON