> For the complete documentation index, see [llms.txt](https://docs.cometh.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cometh.io/advanced/session-keys/erc7579-actions/uninstall-a-module.md).

# Uninstall a Module

```typescript
const ownableExecutorModule = "0x4Fd8d57b94966982B62e9588C27B4171B55E8354"
const moduleData = encodePacked(["address"], ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"])

const userOpHash = await smartAccountClient.uninstallModule({
    type: "executor",
    address: ownableExecutorModule,
    context: moduleData,
})

const receipt = await smartAccountClient.waitForUserOperationReceipt({ hash: userOpHash })
```
