---
title: "Connection.Disconnect"
description: "Disables the connection and removes its wrapper from the cache."
---

```lua
connection:Disconnect(): ()
```

---

## Aliases

None.

---

## Arguments

This function takes no arguments.

---

## Returns

This function returns no values.

Marks the wrapper invalid without invoking RBXScriptConnection:Disconnect. For permanent cleanup of your own listener, disconnect the original RBXScriptConnection.

**Related types:** [Signals types & behavior](/reference/signals/types).

---

## Example

```lua
local event = Instance.new("BindableEvent")
local listener = event.Event:Connect(function(value) print(value) end)
local connection = getconnection(event.Event, 1)
if connection then connection:Disconnect() end
task.wait()
listener:Disconnect()
event:Destroy()
```
