# mobilePlatformApplicationDelete - admin-graphql - MUTATION Version: 2024-10 ## Description Delete a mobile platform application. ### Access Scopes `write_mobile_platform_applications` access scope. Please contact Shopify Support to enable this scope for your app. ## Arguments * [id](/docs/api/admin-graphql/2024-10/scalars/ID): ID! - The ID of the Mobile Platform Application to be deleted. ## Returns * [deletedMobilePlatformApplicationId](/docs/api/admin-graphql/2024-10/scalars/ID): ID The ID of the mobile platform application that was just deleted. * [userErrors](/docs/api/admin-graphql/2024-10/objects/MobilePlatformApplicationUserError): MobilePlatformApplicationUserError! The list of errors that occurred from executing the mutation. ## Examples ### Delete a mobile platform application Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2024-10/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {access_token}' \\\n-d '{\n\"query\": \"mutation DeleteMobilePlatformApplication($id: ID!) { mobilePlatformApplicationDelete(id: $id) { deletedMobilePlatformApplicationId } }\",\n \"variables\": {\n \"id\": \"gid://shopify/MobilePlatformApplication/1066176028\"\n }\n}'\n" Node example: "const client = new shopify.clients.Graphql({session});\nconst data = await client.query({\n data: {\n \"query\": `mutation DeleteMobilePlatformApplication($id: ID!) {\n mobilePlatformApplicationDelete(id: $id) {\n deletedMobilePlatformApplicationId\n }\n }`,\n \"variables\": {\n \"id\": \"gid://shopify/MobilePlatformApplication/1066176028\"\n },\n },\n});\n" Ruby example: "session = ShopifyAPI::Auth::Session.new(\n shop: \"your-development-store.myshopify.com\",\n access_token: access_token\n)\nclient = ShopifyAPI::Clients::Graphql::Admin.new(\n session: session\n)\n\nquery = <<~QUERY\n mutation DeleteMobilePlatformApplication($id: ID!) {\n mobilePlatformApplicationDelete(id: $id) {\n deletedMobilePlatformApplicationId\n }\n }\nQUERY\n\nvariables = {\n \"id\": \"gid://shopify/MobilePlatformApplication/1066176028\"\n}\n\nresponse = client.query(query: query, variables: variables)\n" Remix example: "const { admin } = await authenticate.admin(request);\n\nconst response = await admin.graphql(\n `#graphql\n mutation DeleteMobilePlatformApplication($id: ID!) {\n mobilePlatformApplicationDelete(id: $id) {\n deletedMobilePlatformApplicationId\n }\n }`,\n {\n variables: {\n \"id\": \"gid://shopify/MobilePlatformApplication/1066176028\"\n },\n },\n);\n\nconst data = await response.json();\n" Graphql query: "mutation DeleteMobilePlatformApplication($id: ID!) {\n mobilePlatformApplicationDelete(id: $id) {\n deletedMobilePlatformApplicationId\n }\n}" #### Graphql Input { "id": "gid://shopify/MobilePlatformApplication/1066176028" } #### Graphql Response { "data": { "mobilePlatformApplicationDelete": { "deletedMobilePlatformApplicationId": "gid://shopify/MobilePlatformApplication/1066176028" } } }