AVExport.CancelExport
---------------------

Cancels the execution of an export session.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [AVExport](component_AVExport.md) | [6.1](newinversion61.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "AVExport.CancelExport"; AVExportSession ) 

**MBS**( **"AVExport.CancelExport";** /\* Cancels the execution of an export session. \*/  
**$AVExportSession**) /\* The session reference number.e.g. $AVExport \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| AVExportSession | The session reference number. | $AVExport |

### Result

Returns OK or error.

### Description

Cancels the execution of an export session.  
Cancel can be invoked when the export is running.  
### Examples

Cancel export:

 Set Variable \[$r ; Value:MBS ( "AVExport.CancelExport"; $$AVExport )\]  
### Example Databases

- [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#6ScriptAnchor_)

This function checks for a license.

Created 29th February 2016 , last changed 13th January 2021

  
[AVExport.AllExportPresets](AVExportAllExportPresets.md) - [AVExport.Duration](AVExportDuration.md)

[HTML Version](AVExportCancelExport.shtml)