# removeMediaObjectsFromSku (https://developer.godaddy.com/en/docs/references/rest/catalog/media/mutations/removeMediaObjectsFromSku)

***

title: removeMediaObjectsFromSku
description: "Remove media objects from an existing SKU"
full: true
----------

mutation

Requires `commerce.product:write`.

Remove media objects from an existing SKU

## Required headers

| Header       | Required | Description                                                                                                                     |
| ------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `x-store-id` | Yes      | ID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: `extensions.code: "UNAUTHENTICATED"`. |

Go to [Authentication](https://developer.godaddy.com/docs/api-users/auth) for credential setup.

## Arguments

* `id` `String!` **required**
* `input` `MutationRemoveMediaObjectsFromSkuInput!` **required**
  * `mediaObjectIds` `[String!]!` **required**

## Possible returns

* `SKU` `SKU` — A SKU represents a stock keeping unit (SKU) in the catalog.

- `archivedAt` `DateTime` **nullable** — The timestamp of when the SKU was archived.
- `attributes` `SKUAttributesConnection` **nullable** — Attributes are properties or characteristics of the SKU. For example, color or size.
- `attributeValues` `SKUAttributeValuesConnection` **nullable** — Attribute values of SKU.
- `backorderLimit` `Int` **nullable** — The number of backorders allowed for the SKU. If set to 0, backorders are not allowed. If set to null, backorders are allowed without limit.
- `code` `String!` **non-null** — The unique code for the SKU.
- `createdAt` `DateTime!` **non-null** — The timestamp of when the SKU was created.
- `description` `String` **nullable** — The description of the SKU.
- `disableInventoryTracking` `Boolean` **nullable** — Flag to mark whether stock should be tracked for the SKU.
- `disablePriceOverrides` `Boolean` **nullable** — Flag to mark whether or not a custom price can be provided.
- `disableShipping` `Boolean` **nullable** — Flag to mark whether the SKU should be shipped or not.
- `eanCode` `String` **nullable** — The EAN code for the SKU.
- `gtinCode` `String` **nullable** — The GTIN code for the SKU.
- `htmlDescription` `String` **nullable** — HTML description for the SKU. Will be used to display rich text content to customers.
- `id` `ID!` **non-null** — The globally-unique ID of the SKU.
- `inventoryAdjustments` `SKUInventoryAdjustmentsConnection` **nullable** — An immutable entity that represents a change in state of a quantity of SKU at a particular time and location. Each adjustment will either have a positive, negative, or neutral impact on the count of available SKUs in a location.
- `inventoryCounts` `SKUInventoryCountsConnection` **nullable** — The quantity of a SKU in a specific state at a particular time and location.
- `isbnCode` `String` **nullable** — The ISBN code for the SKU.
- `label` `String` **nullable** — The display label of the SKU.
- `locations` `SKULocationsConnection` **nullable** — The locations where the SKU is available.
- `mediaObjects` `SKUMediaObjectsConnection` **nullable** — Media stored under this SKU.
- `metafields` `SKUMetafieldsConnection` **nullable**
- `name` `String!` **non-null** — A unique name for the SKU.
- `prices` `SKUPricesConnection` **nullable** — These are all the prices the SKU can be sold at. The price can be different based the channel where it is listed or if there is a promotion running.
- `references` `SKUReferencesConnection` **nullable** — A reference to the resource in an external service. This can be useful for integrating the resource to any external service.
- `skuGroup` `SKUGroup` **nullable** — A SKU group is a grouping of related SKUs. It provides information about all the SKUs that are sold together on storefronts or devices.
- `status` `String` **nullable** — The status of the SKU, one of `DRAFT`, `ACTIVE`, `ARCHIVED`.
- `unitCost` `SimpleMoney` **nullable** — The cost of the SKU per unit. This is a money object that includes the value and currency code.
- `unitOfWeight` `String` **nullable** — The unit of weight, one of `KG`, `GR`, `LB`, `OZ`.
- `upcCode` `String` **nullable** — The UPC code for the SKU.
- `updatedAt` `DateTime!` **non-null** — The timestamp of when the SKU was updated.
- `weight` `Float` **nullable** — The weight of the SKU.
- `cost` `Int` **nullable** deprecated — DEPRECATED. Use unitCost instead. Deprecated: This cost field cannot specify currency code. Use `unitCost` instead.
- `HTMLDescription` `String` **nullable** deprecated — HTML description for the SKU. Will be used to display rich text content to customers. Deprecated: Use htmlDescription instead.
- `shortLabel` `String` **nullable** deprecated — A short label for the SKU, useful for UI with limited space. Deprecated: Use channel-specific overrides for short labels.
- `SKUGroup` `SKUGroup` **nullable** deprecated — A SKU group is a grouping of related SKUs. It provides information about all the SKUs that are sold together on storefronts or devices. Deprecated: Use skuGroup instead.
