How to Remove a Stored ChatGPT API Key from Excel Add-ins
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.

- 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.
Ensure you have completely closed Microsoft Excel before attempting to clear system credentials or delete local application data folders.
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.
Click the Windows Start button, type 'Credential Manager' in the search bar, and select the corresponding Control Panel app from the results.
Click on 'Windows Credentials' to view all the saved authentication tokens and passwords on your system.
Scroll through the 'Generic Credentials' list and look for an entry named after your ChatGPT add-in, OpenAI, or Excel API settings.
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.

Delete Add-in Local Application Data
If the API key is not in the Credential Manager, the add-in likely stored it in a hidden configuration file on your local drive.
Check Add-in Built-in Settings
Use the add-in's own user interface to properly log out or disconnect the API key before uninstalling it.
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. Download the Installer: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install WPS Office: Run the setup file and follow the straightforward on-screen instructions to install the suite.
- 3. Explore WPS AI: Open WPS Spreadsheets and access the built-in AI tools directly from the ribbon, no API keys required.

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.




