Start a conversation

Deleting a Quilt override

A quick tutorial on deleting a Quilt override via GraphQL or manually.

There are two ways to remove a Quilt override: manually or via a GraphQL mutation. This section explains how to delete a Quilt override using both methods.

Deleting a Quilt override via GraphQL

To delete one or more Quilt overrides via GraphQL, make a GraphQL call to execute the deleteBulkQuiltOverride mutation. Behind the scenes, this mutation removes the Quilt JSON file, the Quilt directory (if there is one), any files in it, and checks them into the Git repo for you.

Here is an example GraphQL call, including the query and the variables to make the call:

Query

fragment Error on Error {
    message
    fields
}
 
mutation DeleteBuilkQuiltOverride($deleteBulkQuilt: [DeleteQuiltInput!]!) {
    deleteBulkQuiltOverride(deleteBulkQuilt: $deleteBulkQuilt) {
        result
        errors {
            ...on Error {
                ...Error
            }
        }
    }
}

Variables

{
    "deleteBulkQuilt": [
        {
            "id": "CommunityPage"
        },
        {
            "id": "ForumBoardPage"
        }
    ]
}

To delete a Quilt override manually, remove the .quilt.json file for the specific Quilt you want to delete. Also, remove the directory with the same name as the part of your .quilt.json file name before the .quilt.json, if there is one.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. ATLAS

  2. Posted
  3. Updated

Comments