> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# isDestroyed()

> Returns whether the call instance has been destroyed.

`isDestroyed()`

<Badge color="green">{"✓"} Prebuilt</Badge> <Badge color="green">{"✓"} Custom</Badge>

Returns `true` if [`destroy()`](/reference/daily-js/instance-methods/destroy) has been called on this instance. A destroyed instance cannot be reused.

A call instance can be reused across multiple calls — a sequence of `join()`, `leave()`, `join()` works as expected. Only call `destroy()` when you are completely done with the instance and want to free all associated resources.

<Warning>
  Calling any method on a destroyed instance throws an `Error`.
</Warning>

## Return value

Returns `boolean`.

## Example

```javascript theme={null}
if (!call.isDestroyed()) {
  await call.destroy();
}
```

## See also

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [destroy()](/reference/daily-js/instance-methods/destroy)
    * [leave()](/reference/daily-js/instance-methods/leave)
  </Card>

  <Card title="Guides" icon="book-open" iconType="solid">
    * [Multi-instance calls](/docs/daily-js/guides/multi-instance)
  </Card>
</CardGroup>
