Keychain.DeletePassword
-----------------------

Delete password from keychain.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Keychain](component_Keychain.md) | [8.4](newinversion84.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "Keychain.DeletePassword"; Location; UserName ) 

**MBS**( **"Keychain.DeletePassword";** /\* Delete password from keychain. \*/  
**$Location**; /\* The location where the database is.  
Must be prefixed with FMP.  
e.g. "FMP: " or "FMPADMIN: " followed with the name or IP.e.g. "FMPADMIN: mbs.test.ifmcloud.com" \*/   
**$UserName**) /\* The user name.e.g. "Admin" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Location | The location where the database is.   Must be prefixed with FMP.   e.g. "FMP: " or "FMPADMIN: " followed with the name or IP. | "FMPADMIN: mbs.test.ifmcloud.com" |
| UserName | The user name. | "Admin" |

### Result

Returns OK or error.

### Description

Delete password from keychain.  
We look for a FileMaker password with given account name and location.  
### Examples

Deletes a password:

 MBS ("Keychain.DeletePassword"; "FMP: Anlagen"; "Admin")  
### See also

- [Keychain.UpdatePassword](KeychainUpdatePassword.md)

This function checks for a license.

Created 25th August 2018 , last changed 25th August 2018

  
[Keychain.DeleteGenericPassword](KeychainDeleteGenericPassword.md) - [Keychain.FindGenericPassword](KeychainFindGenericPassword.md)

[HTML Version](KeychainDeletePassword.shtml)