[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [local‑first/Evolu](https://evolu.dev/docs/api-reference/common/local-first/Evolu) › UseOwnerOptions

Defined in: [packages/common/src/local-first/Evolu.ts:1319](https://github.com/evoluhq/evolu/blob/4eedb2272841bdeb2d7c3387784ba157d2f33f1c/packages/common/src/local-first/Evolu.ts#L1319)

Options of [Evolu.useOwner](https://evolu.dev/docs/api-reference/common/local-first/Evolu/interfaces/Evolu#useowner).

## Properties

<a id="deletewhenunused"></a>

### deleteWhenUnused?

```ts
readonly deleteWhenUnused?: boolean;
```

Defined in: [packages/common/src/local-first/Evolu.ts:1345](https://github.com/evoluhq/evolu/blob/4eedb2272841bdeb2d7c3387784ba157d2f33f1c/packages/common/src/local-first/Evolu.ts#L1345)

With `true`, this database keeps syncing the owner for 10 seconds after its
last registration in any instance of the database, in any tab, ends, and
then deletes the owner's rows if every relay has all of the owner's changes
by then. It deletes them as [Evolu.deleteOwner](https://evolu.dev/docs/api-reference/common/local-first/Evolu/interfaces/Evolu#deleteowner) does, local-only rows
included, and refreshes the queries of every instance, but calls no
[EvoluConfig.onOwnerDeleted](https://evolu.dev/docs/api-reference/common/local-first/Evolu/interfaces/EvoluConfig#onownerdeleted), because nothing uses the owner then. A
new registration within those 10 seconds keeps the rows. The delay covers a
page that unmounts and mounts again, a change of relays, and a quick return
to the page, any of which would otherwise delete the rows and download them
again.

The rows stay if the app closes within those 10 seconds, if a relay still
lacks changes when they end, also a relay the owner stopped syncing with
while another registration remained or after one replaced it within those
10 seconds, or if any registration while the owner was in use didn't set
this option to `true` or was readonly, which sends nothing, so Evolu can't
tell whether relays have the owner's rows. They then stay until the owner
is used with this option and released again. Throws for the instance's own
AppOwner and any owner with its ID, which names the database;
[Evolu.deleteDatabase](https://evolu.dev/docs/api-reference/common/local-first/Evolu/interfaces/Evolu#deletedatabase) deletes the whole database instead.

---

<a id="transports"></a>

### transports?

```ts
readonly transports?: readonly [OwnerWebSocketTransport, OwnerWebSocketTransport];
```

Defined in: [packages/common/src/local-first/Evolu.ts:1321](https://github.com/evoluhq/evolu/blob/4eedb2272841bdeb2d7c3387784ba157d2f33f1c/packages/common/src/local-first/Evolu.ts#L1321)

The transports that sync the owner, instead of the default ones.