AVAsset.Release
---------------

Releases the object and all memory used for it.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [AVAsset](component_AVAsset.md) | [5.2](newinversion52.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "AVAsset.Release"; Asset ) 

**MBS**( **"AVAsset.Release";** /\* Releases the object and all memory used for it. \*/  
**$Asset**) /\* The reference number of the asset. Please use [AVAsset.OpenContainer](AVAssetOpenContainer.md), [AVAsset.OpenFile](AVAssetOpenFile.md) or [AVAsset.OpenURL](AVAssetOpenURL.md) function to get asset reference. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Asset | The reference number of the asset. Please use [AVAsset.OpenContainer](AVAssetOpenContainer.md), [AVAsset.OpenFile](AVAssetOpenFile.md) or [AVAsset.OpenURL](AVAssetOpenURL.md) function to get asset reference. | $asset |

### Result

Returns OK or error.

### Description

Releases the object and all memory used for it.  
Please call this when you are done with an asset.  
### Examples

Release a video:

 MBS ( "AVAsset.Release"; $asset )  
### See also

- [AVAsset.Framerate](AVAssetFramerate.md)
- [AVAsset.ImageActualTime](AVAssetImageActualTime.md)
- [AVAsset.Loaded](AVAssetLoaded.md)
- [AVAsset.OpenContainer](AVAssetOpenContainer.md)
- [AVAsset.OpenFile](AVAssetOpenFile.md)
- [AVAsset.OpenURL](AVAssetOpenURL.md)
- [AVAsset.TrackInfo](AVAssetTrackInfo.md)
- [AVAsset.WaitForLoaded](AVAssetWaitForLoaded.md)
- [AVExport.ExportSession](AVExportExportSession.md)
- [AVPlayer.GetAsset](AVPlayerGetAsset.md)

### Release notes

- **Version 10.2**
    - Added [AVAsset.ReleaseAll](https://www.mbsplugins.eu/AVAssetReleaseAll.shtml) function.

### Example Databases

- [Containers/Create Container Preview](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Containers/Create%20Container%20Preview.shtml#1ScriptAnchor_)
- [iOS/Examples/Movie Container iOS and Mac](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/iOS/Examples/Movie%20Container%20iOS%20and%20Mac.shtml#4ScriptAnchor_)
- [Mac and iOS/AVAsset Tracks](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/AVAsset%20Tracks.shtml#1ScriptAnchor_)
- [Mac and iOS/AVExport](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/AVExport.shtml#1ScriptAnchor_)
- [Mac only/Movies/AVAsset Export Session](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Movies/AVAsset%20Export%20Session.shtml#2ScriptAnchor_)
- [Mac only/Movies/AVAsset Test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Movies/AVAsset%20Test.shtml#1ScriptAnchor_)

This function checks for a license.

Created 19th June 2015 , last changed 11st April 2026

  
[AVAsset.PreferredVolume](AVAssetPreferredVolume.md) - [AVAsset.ReleaseAll](AVAssetReleaseAll.md)

[HTML Version](AVAssetRelease.shtml)