Deleting a download
Licence keys for PRM-protected downloaded content are stored with the PAK library rather than the download database. You are advised to delete the licence when deleting the download item. The parameters for removing the licence are stored within the OTVDownloadItem
instance and must be retrieved before deleting the content.
OTVDownloadItem item = mDlManager.getDownloadByUUID(uuid);
mPrmManager.removeLicense(item.getAsset().getPRMSyntax(), item.getAsset().getPRMContentId());
The following removes a download entry from the persistent database and any downloaded data or licence keys from the persistent storage.
mDlManager.removeDownload(uuid);
OTVDownloadManager
removes the relevant OTVDownloadItem
instance from the database and clears the storage associated with it.