---
schema_version: "1"
id: b52b79c94f5a4c96e37010479076ba6bb187fe14deddc486985b2e4d34aa43d6
title: Hide End Chat
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/messaging-in-app/guides/ios-hide-end-chat.md
canonical_url: https://developer.salesforce.com/docs/service/messaging-in-app/guide/ios-hide-end-chat.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: b505ea8df50028a4595a1950ab51035b7d3e0751e8a0bbdd666e72060370b71a
products:
  - Enhanced In-App Chat
  - Service Cloud Developer Content
---
# Hide End Chat

Set the `allowEndChat` parameter in the `UIConfiguration` object to `false` to hide the End Chat button from the messaging conversation menu.

**important:** This feature requires version 1.9.0 or later of the Enhanced In-App Chat SDK.


This article applies to the following implementations:

| UI SDK | Core SDK |
| :----: | :------: |
|   ✅   |          |


```
/**
 * Create a UIConfiguration object and set the value allowEndChat in the conversationOptionsConfiguration to false to hide it.
 */
let configuration = UIConfiguration(serviceAPI: <String>, organizationId: <String>, developerName: <name>, conversationId: <UUID>)
configuration.conversationOptionsConfiguration = ConversationOptionsConfiguration(allowEndChat: false)
```
