---
url: /process-functions/ftpclient-disconnect.md
description: Disconnects the FTPClient.
---

# FTPClient » Disconnect

Disconnects the FTPClient.

```js
client.Disconnect();
```

#### Example

```js
let client = ftp.Connect(
    "sftp", 
    "example.domain.com", 
    22,
    "brad",
    "password"
);
let success = client.IsConnected(); 
if (success) {
    // Do some ftp work...
    client.Disconnect();
}
```
