> This page is for TWS API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://ibkrcampus.com/docs/llms.txt.

# How To Delete Logs

In some instances, your logs may be too large to export or upload for Client Services to review. In scenarios such as this, the Support team may request that you delete your existing API logs, and then replicate the error before attempting to upload them again.

To delete your logs:

1. [Locate your Logs](/tws-api/doc/troubleshooting-support/log-files/location-of-interactive-brokers-logs).
2. Exit Trader Workstation or IB Gateway session by clicking "File" and "Exit".
3. In your window explorer, navigate to your "User Dir" found in Step (1).
4. Once in the directory, select the files labeled like "api.0.20250110.105733.ibgzenc", "tws.20250110.105733.ibgzenc" or "ibgateway.20250110.105733.ibgzenc" and press the "DEL" or "Delete" key on your keyboard.