简体   繁体   中英

Deleting asset and transform job (Azure Media Services v3)

What's the best practice for deleting an asset in Azure Media Services?

I'm aware of Delete() method. However, I'm wondering what's gonna happen when the asset is still not processed and there is a non-processed transform job submitted. Should I check whether such a transform job exist and Delete() it? Or Cancel() it?

Edit: I want to allow users to delete assets the asset when they upload the wrong video and they realize it after the upload is done.

Editing the reply based on updated context info. Yes, in this case, if you have to delete an Asset if the wrong video has been uploaded, you can attempt to cancel the Job and delete it. You should anticipate situations where the service errors the Job just before you cancel it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM