Delete App-Controlled Metaobject Definition

Solved

Delete App-Controlled Metaobject Definition

arieswen415
Shopify Partner
21 5 3

Hey Shopify Dev Community,

 

I created a metaobject definition using the GraphiQL app, but forgot to copy the ID of the definition.

 

Now I want to delete it. Is there a way to do so without the ID?

 

Or is there a query I can use to list out the latest created Metaobject Definitions so I can get the ID?

 

I might have missed it as I read through the documentation.

 

Any input is appreciated. Thank you!

Accepted Solution (1)

Eric-HAN
Shopify Partner
103 15 8

This is an accepted solution.

Hi, there

 

You could try this

query GetLMetaobjectDefinitions {
  metaobjectDefinitions(first: 10, reverse: true) {
    edges {
      node {
        id
        name
        type
        createdAt
      }
    }
  }
}
- Helpful? Please hit Like and mark it as a solution
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me    Buy Me A Coffee

View solution in original post

Reply 1 (1)

Eric-HAN
Shopify Partner
103 15 8

This is an accepted solution.

Hi, there

 

You could try this

query GetLMetaobjectDefinitions {
  metaobjectDefinitions(first: 10, reverse: true) {
    edges {
      node {
        id
        name
        type
        createdAt
      }
    }
  }
}
- Helpful? Please hit Like and mark it as a solution
Want to modify or custom changes on store? Let me help.
- Feel free to Email Me    Buy Me A Coffee