---
title: NEOnDemandRuleAction.disconnect
framework: networkextension
role: symbol
role_heading: Case
path: networkextension/neondemandruleaction/disconnect
---

# NEOnDemandRuleAction.disconnect

Do not start the VPN connection, and disconnect the VPN connection if it is not currently disconnected.

## Declaration

```swift
case disconnect
```

## See Also

### Rule Actions

- [NEOnDemandRuleAction.connect](networkextension/neondemandruleaction/connect.md)
- [NEOnDemandRuleAction.evaluateConnection](networkextension/neondemandruleaction/evaluateconnection.md)
- [NEOnDemandRuleAction.ignore](networkextension/neondemandruleaction/ignore.md)
