Anchor to section titled 'undefined'

mobilePlatformApplicationDelete
mutation

Requires write_mobile_platform_applications access scope. Please contact Shopify Support to enable this scope for your app.

Delete a mobile platform application.


Anchor to id
id
required

The ID of the Mobile Platform Application to be deleted.


Was this section helpful?

The ID of the mobile platform application that was just deleted.

The list of errors that occurred from executing the mutation.


Was this section helpful?

Examples

Hide code
DescriptionCopy
mutation DeleteMobilePlatformApplication($id: ID!) {
  mobilePlatformApplicationDelete(id: $id) {
    deletedMobilePlatformApplicationId
  }
}
curl -X POST \
https://your-development-store.myshopify.com/admin/api/2024-10/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/1066176006"
  }
}'
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/1066176006"
    },
  },
);

const data = await response.json();
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/1066176006"
}

response = client.query(query: query, variables: variables)
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/1066176006"
    },
  },
});
use Shopify\Clients\Graphql;

$client = new Graphql("your-development-store.myshopify.com", $accessToken);
$query = <<<QUERY
  mutation DeleteMobilePlatformApplication($id: ID!) {
    mobilePlatformApplicationDelete(id: $id) {
      deletedMobilePlatformApplicationId
    }
  }
QUERY;

$variables = [
  "id" => "gid://shopify/MobilePlatformApplication/1066176006",
];

$response = $client->query(["query" => $query, "variables" => $variables]);
Hide code
Input variables
Copy
{
  "id": "gid://shopify/MobilePlatformApplication/1066176006"
}
Hide code
Response
JSON
{
  "mobilePlatformApplicationDelete": {
    "deletedMobilePlatformApplicationId": "gid://shopify/MobilePlatformApplication/1066176006"
  }
}