[O3 Framework](../API.md) / detach

# Function: ~~detach()~~

> **detach**(`extensionSlotName`, `extensionId`): `void`

Defined in: [packages/framework/esm-extensions/src/extensions.ts:260](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-extensions/src/extensions.ts#L260)

Detaches an extension from an extension slot.

## Parameters

### extensionSlotName

`string`

The name of the extension slot to detach from.

### extensionId

`string`

The ID of the extension to detach.

## Returns

`void`

## Deprecated

Avoid using this. Extension attachments should be considered declarative.
