Anchor to mobilePlatformApplicationDeletemobile
mobilePlatformApplicationDelete
mutation
Requires access scope. Please contact Shopify Support to enable this scope for your app.
Delete a mobile platform application.
Anchor to Arguments
Arguments
- •ID!required
The ID of the Mobile Platform Application to be deleted.
Was this section helpful?
Anchor to MobilePlatformApplicationDeletePayload returnsMobilePlatformApplicationDeletePayload returns
- Anchor to deletedMobilePlatformApplicationIddeleted•
Mobile Platform Application Id The ID of the mobile platform application that was just deleted.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
- Delete a mobile platform application
- mobilePlatformApplicationDelete reference
Examples
const { admin } = await authenticate.admin(request);
const response = await admin.graphql(
`#graphql
mutation DeleteMobilePlatformApplication($id: ID!) {
mobilePlatformApplicationDelete(id: $id) {
deletedMobilePlatformApplicationId
}
}`,
{
variables: {
"id": "gid://shopify/MobilePlatformApplication/1066176028"
},
},
);
const data = await response.json();
mutation DeleteMobilePlatformApplication($id: ID!) {
mobilePlatformApplicationDelete(id: $id) {
deletedMobilePlatformApplicationId
}
}
curl -X POST \
https://your-development-store.myshopify.com/admin/api/2025-01/graphql.json \
-H 'Content-Type: application/json' \
-H 'X-Shopify-Access-Token: {access_token}' \
-d '{
"query": "mutation DeleteMobilePlatformApplication($id: ID!) { mobilePlatformApplicationDelete(id: $id) { deletedMobilePlatformApplicationId } }",
"variables": {
"id": "gid://shopify/MobilePlatformApplication/1066176028"
}
}'
const { admin } = await authenticate.admin(request);
const response = await admin.graphql(
`#graphql
mutation DeleteMobilePlatformApplication($id: ID!) {
mobilePlatformApplicationDelete(id: $id) {
deletedMobilePlatformApplicationId
}
}`,
{
variables: {
"id": "gid://shopify/MobilePlatformApplication/1066176028"
},
},
);
const data = await response.json();
const client = new shopify.clients.Graphql({session});
const data = await client.query({
data: {
"query": `mutation DeleteMobilePlatformApplication($id: ID!) {
mobilePlatformApplicationDelete(id: $id) {
deletedMobilePlatformApplicationId
}
}`,
"variables": {
"id": "gid://shopify/MobilePlatformApplication/1066176028"
},
},
});
session = ShopifyAPI::Auth::Session.new(
shop: "your-development-store.myshopify.com",
access_token: access_token
)
client = ShopifyAPI::Clients::Graphql::Admin.new(
session: session
)
query = <<~QUERY
mutation DeleteMobilePlatformApplication($id: ID!) {
mobilePlatformApplicationDelete(id: $id) {
deletedMobilePlatformApplicationId
}
}
QUERY
variables = {
"id": "gid://shopify/MobilePlatformApplication/1066176028"
}
response = client.query(query: query, variables: variables)
Input variables
JSON{
"id": "gid://shopify/MobilePlatformApplication/1066176028"
}
Response
JSON{
"mobilePlatformApplicationDelete": {
"deletedMobilePlatformApplicationId": "gid://shopify/MobilePlatformApplication/1066176028"
}
}