<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceManagement",
  "identifier" : "/documentation/DeviceManagement/Remove-Media-Command",
  "metadataVersion" : "0.1.0",
  "role" : "Web Service Endpoint",
  "symbol" : {
    "kind" : "Web Service Endpoint",
    "modules" : [
      "Device Management"
    ],
    "preciseIdentifier" : "rest:put:mdm#RemoveMediaCommand"
  },
  "title" : "Remove Media"
}
-->

# Remove Media

Remove a previously installed book from a device.

## Discussion

Refer to the following sections to determine supported channels and requirements, and to see an example request and response.

### Command availability

|||
|--------------------------|--------------------|
|Device channel            |iOS, Shared iPad    |
|User channel              |N/A                 |
|Requires supervision      |N/A                 |
|Allowed in user enrollment|iOS                 |
|Required access right     |AllowAppInstallation|

### Example request and response

**Request:**

```plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>MediaType</key>
    <string>Book</string>
    <key>PersistentID</key>
    <string>com.acme.pdf.myenterprisebook</string>
    <key>RequestType</key>
    <string>RemoveMedia</string>
</dict>
</plist>
```

**Response:**

```plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CommandUUID</key>
    <string>0001_RemoveMedia</string>
    <key>Status</key>
    <string>Acknowledged</string>
    <key>UDID</key>
    <string>00008020-000915083C80012E</string>
</dict>
</plist>
```

## Topics

### Commands and responses

[`object RemoveMediaCommand`](/documentation/DeviceManagement/RemoveMediaCommand)

The command to remove a previously installed book from a device.

[`object RemoveMediaResponse`](/documentation/DeviceManagement/RemoveMediaResponse)

A response from the device after it processes the command to remove a previously installed book from a device.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)