Delete project resource

deleteProjectResource(input: DeleteProjectResourceInput!): DeleteProjectPrimitivePayload!

Requires project.files.write.

Arguments

ArgumentTypeRequired
inputDeleteProjectResourceInput!Yes

Input fields

input

DeleteProjectResourceInput

FieldTypeRequired
projectReferenceStringNo
resourceIdString!Yes
sourceTargetKindStringNo
targetBranchIdIDNo

Response

Returns DeleteProjectPrimitivePayload!. Open the type for its fields and nested types.

FieldTypeDescription
okBoolean!Always true: the deletion completed. A failed deletion is a GraphQL error.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

query.graphql
mutation DeleteProjectResource($input: DeleteProjectResourceInput!) {  deleteProjectResource(input: $input) {    ok  }}
variables.json
{  "input": {    "projectReference": "00000000-0000-4000-8000-000000000001",    "resourceId": "00000000-0000-4000-8000-000000000001"  }}