Allows the deletion of several chats at once from the Google AI Studio library webpage.
目前為
This User Script for your web browser enhances the Google AI Studio library webpage by adding bulk deletion functionalities. Easily manage your chat history with options to delete all items at once or select specific items for removal.
This script was developed to streamline the process of cleaning up the Google AI Studio library. Manually deleting a large number of chats can be a tedious and time-consuming task. This script automates the process, providing a much-needed "Bulk Delete All" and "Bulk Delete Selected" functionality, complete with a safe-stop mechanism and auto-reloading to handle large libraries efficiently.
To use this script, you need a UserScript manager extension for your web browser, such as Tampermonkey (available for Chrome, Firefox, Edge, Safari, and more).
Once installed:
google-ai-studio-bulk-delete.user.js file from this repository.This script was tested under the following configuration:
After installing the script, navigate to your Google AI Studio Library. You will see new buttons and checkboxes added to the interface.
Bulk Delete All: This feature automates clearing your entire library. After confirmation, it deletes all visible items in a batch, reloads the page, and continues until the library is empty.
Bulk Delete Selected: Checkboxes are added next to each item, allowing you to select specific chats for deletion. This process deletes items one-by-one, reloading the page after each deletion, until all selected items are removed.
Full Control: You can press the "Stop" button at any time to safely halt any ongoing bulk deletion process.
Configurable Delays: The delays between actions can be configured in the "Configuration" section of the script.
You can adjust the timing of the script's actions by editing these variables at the top of the script file:
aDELAY_BETWEEN_ACTIONS: The delay in milliseconds between clicks (e.g., clicking the "More options" menu and then clicking the "Delete" button). Default is 500.aDELAY_AFTER_DELETION: The delay in milliseconds after confirming a deletion before the page reloads. Default is 1500.The author provides no guarantees regarding the performance, safety, or functionality of this script. You assume all risks associated with its use. The author offers no support and is not responsible for any potential data loss or issues that may arise.
This script's operation depends on the current Document Object Model (DOM) of the Google AI Studio platform. Modifications to the website by Google are likely to render this script non-functional in the future. While the author does not plan on providing proactive updates or support, contributions in the form of GitHub pull requests are welcome.