API reference
API-method resetservervolume
Signature
bool resetservervolume(int ServerId, string Counter);
Description
Resets download volume statistics for a specified news-server. This method allows for selective resetting of counters.
Arguments
ServerId
(int)
- Server ID to reset.Counter
(string)
- Specifies which counter to reset. The behavior depends on the value of this argument:- “CUSTOM” (case-sensitive) - Resets only the custom counter associated with the server. Use this option to clear custom statistics while preserving overall download volume data.
- "" (empty string) - Resets all counters associated with the server, including the overall download volume and any custom counters.
Return value
true
on success or false
on failure.
Introduction
Installation manuals
- Installation on Windows
- Installation on Windows via WinGet
- Installation on macOS
- Installation on macOS via Homebrew
- Installation on Linux
- Installation on Docker
- Installation on Docker - LinuxServer.io version
- Installation on Android
- Installation on Synology
- Installation on QNAP
- Installation on other NAS devices
Building manuals
Configuration
- Backup And Restore Settings
- Performance Tips
- Choosing Cipher
- Behind Other Web Server
- TLS certificate verification
Usage
- Quick Filter
- Keyboard Shortcuts
- RSS and duplicate check
- VideoSort
- Console Mode
- Command Line Reference
- Performing Speed Tests
Development
Extensions
- Extension Scripts
- Post-processing scripts
- Scan Scripts
- Queue Scripts
- Scheduler Scripts
- Feed Scripts
- API reference