Account Security Problems

How to Remove a Stored ChatGPT API Key from Excel Add-ins

Muhammad TalhaMuhammad Talha Oct 12, 2026 868 views

Question details

The user needs to completely delete a ChatGPT API key that continues to function and appear in Microsoft Excel even after the related add-in has been reinstalled.

How to Remove a Stored ChatGPT API Key from Excel Add-ins
Product
Microsoft Excel
Device & OS
Windows
Scenario
Uninstalling or reinstalling an Excel add-in to wipe external API credentials.
Observed behavior
The deleted ChatGPT API key remains active because it is securely stored outside of the standard Excel registry location.
Before you start

Ensure you have completely closed Microsoft Excel before attempting to clear system credentials or delete local application data folders.

Solution 1Recommended

Clear the API Key from Windows Credential Manager

Use this method if the add-in utilizes Windows' native secure storage to keep your API key active across reinstallations.

Many secure add-ins bypass the registry and store sensitive information like API keys in the Windows Credential Manager. Deleting the credentials here will force the add-in to ask for the key again.

1
Open Credential Manager

Click the Windows Start button, type 'Credential Manager' in the search bar, and select the corresponding Control Panel app from the results.

2
Access Windows Credentials

Click on 'Windows Credentials' to view all the saved authentication tokens and passwords on your system.

3
Locate the Add-in Entry

Scroll through the 'Generic Credentials' list and look for an entry named after your ChatGPT add-in, OpenAI, or Excel API settings.

4
Remove the Credential

Click the downward arrow next to the relevant entry to expand it, then click 'Remove' and confirm your choice to delete the API key permanently.

Clear the API Key from Windows Credential Manager
Safe Deletion: Removing credentials from this menu is entirely safe and will not corrupt your Excel installation or system registry.
Free Microsoft Office alternative

Try WPS Office for Built-in AI Capabilities

Struggling with complicated third-party Excel add-ins and manual API key management? Consider switching to WPS Office. It provides powerful built-in AI features directly within the software, eliminating the need to install buggy add-ins or manage external API keys while ensuring seamless compatibility with all your existing Microsoft Office files.

  1. 1. Download the Installer: Visit the official WPS Office website and download the free installer for your operating system.
  2. 2. Install WPS Office: Run the setup file and follow the straightforward on-screen instructions to install the suite.
  3. 3. Explore WPS AI: Open WPS Spreadsheets and access the built-in AI tools directly from the ribbon, no API keys required.
Built-in WPS AI for seamless data analysis and text generationNo need to manage or troubleshoot complex third-party API keysFully compatible with Microsoft Excel (.xlsx) and Word (.docx) formatsFree, lightweight, and easy to use across all your devices
microsoft office alternative - wps office

Frequently Asked Questions

Why does my API key persist after uninstalling an Excel add-in?

Many third-party add-ins store sensitive credentials like API keys in external locations, such as the Windows Credential Manager or local AppData folders, rather than the add-in directory itself. This is designed to preserve user settings across updates or reinstallations.

Is it safe to use Registry Editor to find hidden API keys?

It is not recommended. Deleting unrelated registry entries under the Microsoft Office or Excel folders can corrupt your software installation. You should always attempt to clear credentials via the Credential Manager or AppData folders first.

Where is the Windows Credential Manager located?

You can find it by opening the Windows Start menu, typing 'Credential Manager', and pressing Enter. Once open, select 'Windows Credentials' to view and manage securely stored passwords and API tokens for your applications.