# disableActivePartition {#disableactivepartition}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`disableActivePartition(dbHandle)`

## Arguments {#arguments}

**dbHandle** is the handle of the historical database.

## Details {#details}

Cancel the connection between the active database and the historical database.

## Examples {#examples}

```
histdb = database("C:\DolphinDBDemo\example\data\dbspace\historical-A\Trades2ndDomain")
activeNodeAlias = getNodeAlias()
activeDate = today()
enableActivePartition(histdb, activeDate, activeNodeAlias);

disableActivePartition(histdb);
```

