---
name: "upscli_cleanup"
section: "3"
platform: "linux"
package: "nut"
version: "2.8.5-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/upscli_cleanup"
---

# upscli\_cleanup(3)

Clean-up upsclient module after usage.

## NAME

upscli\_cleanup - Clean-up upsclient module after usage.

## SYNOPSIS

```
        #include <upsclient.h>
        int upscli_cleanup(void);
```

## DESCRIPTION

The **upscli\_cleanup()** function flushes SSL caches and frees memory used internally in upsclient module.

## RETURN VALUE

The **upscli\_cleanup()** function returns *1* on success, or *-1* if an error occurs.

## SEE ALSO

[**upscli\_init**(3)](/upscli_init/3.md), [**upscli\_strerror**(3)](/upscli_strerror/3.md), [**upscli\_upserror**(3)](/upscli_upserror/3.md)
