DynaPDF.DeleteOutputIntent
--------------------------

Can be used to delete a specific or all output intents.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [15.0](newinversion150.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.DeleteOutputIntent"; PDF; Index ) 

**MBS**( **"DynaPDF.DeleteOutputIntent";** /\* Can be used to delete a specific or all output intents. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Index**) /\* Array index or -1 to delete all intents.e.g. -1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Index | Array index or -1 to delete all intents. | -1 |

### Result

Returns OK or error.

### Description

Can be used to delete a specific or all output intents.  
A PDF file can contain more than one output intent. Call [DynaPDF.GetOutputIntentCount](DynaPDFGetOutputIntentCount.md) to determine the number of available output intents. If the parameter Index is set to -1 all output intents will be deleted.  
If the function succeeds the return value is the remaining number of output intents.  
See also [DeleteOutputIntent](https://www.monkeybreadsoftware.com/DynaPDF-Manual/DeleteOutputIntent.shtml) function in DynaPDF manual.

### Examples

Delete first output intent:

 Set Variable \[ $IntentsRemaining ; Value: MBS ( "DynaPDF.DeleteOutputIntent"; $PDF ; 0 ) \]  
Delete all output intents:

 Set Variable \[ $IntentsRemaining ; Value: MBS ( "DynaPDF.DeleteOutputIntent"; $PDF ; -1 ) \]  
### See also

- [DynaPDF.AddOutputIntent](DynaPDFAddOutputIntent.md)
- [DynaPDF.GetOutputIntent](DynaPDFGetOutputIntent.md)
- [DynaPDF.GetOutputIntentCount](DynaPDFGetOutputIntentCount.md)
- [DynaPDF.New](DynaPDFNew.md)

### Release notes

- **Version 15.0**
    - Added [DynaPDF.DeleteOutputIntent](https://www.mbsplugins.eu/DynaPDFDeleteOutputIntent.shtml) function.

### Blog Entries

- [New in MBS FileMaker Plugin 15.0](https://www.mbsplugins.de/archive/2025-01-21/New_in_MBS_FileMaker_Plugin_15/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 15.0 für Claris FileMaker](https://www.mbsplugins.de/archive/2025-01-14/Neues_MBS_Plugin_150_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 15.0 for Claris FileMaker](https://www.mbsplugins.de/archive/2025-01-14/MBS_Plugin_150_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.6pr6](https://www.mbsplugins.de/archive/2024-12-19/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 17th December 2024 , last changed 31st December 2024

  
[DynaPDF.DeleteNamedDest](DynaPDFDeleteNamedDest.md) - [DynaPDF.DeletePage](DynaPDFDeletePage.md)

[HTML Version](DynaPDFDeleteOutputIntent.shtml)