---
title: "Disabling, Pausing and Resuming Data Collection"
slug: "disabling-pausing-and-resuming-data-collection"
updated: 2020-04-16T20:21:28Z
published: 2020-04-16T20:21:28Z
canonical: "onpremises.webtrends.help/disabling-pausing-and-resuming-data-collection"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://onpremises.webtrends.help/llms.txt
> Use this file to discover all available pages before exploring further.

# Disabling, Pausing and Resuming Data Collection

Webtrends data collection can be disabled, or paused and resumed at any time. You may want to disable data collection in an application to ensure no Webtrends data is collected.


#### To disable collection and sending of events:

`WTDataCollector.getInstance().setConfigSetting(WTConfigKeys.ENABLED, "false", true);`


#### To pause and resume events transmission:
```pause_resume

// Pause
WTDataCollector.getInstance().pauseEventTransmission();

// Resume
WTDataCollector.getInstance().resumeEventTransmission();
```
