It's a browser extension created specifically for A12S. This tool simplifies the process of cleaning up websites, different subscriptions, and domains. Previously, developers had to do it manually through the UI, navigating multiple pages, prompts and steps for each item. This extension saves valuable time and dramatically reduces manual work, allowing developers to complete the cleanup with just one button click.
- Cancel subscriptions and remove them (https://wordpress.com/me/purchases).
At the moment we support only:
- Purchases made with Free credits(Refund is not implemented):
- Domain registration
- Wordpress.com plans
- Titan
- Google Workspace
- Purchases made with Free credits(Refund is not implemented):
- Delete sites (https://wordpress.com/sites)
- Remove A4A sites from dashboard (https://agencies.automattic.com/sites)
Follow these steps to set up WPcom Cleanser:
- Clone the repository:
git clone git@github.com:nightnei/wpcom-cleanser.git
- Open Chrome and navigate to chrome://extensions/
- Enable Developer Mode (top right corner)
- Click on “Load unpacked” and select the cloned repository folder
- The extension should now be visible in your extensions list
- Open the Extension: Click the "WPcom Cleanser" icon in your Chrome toolbar
- Click on the "Settings" button in the top right corner and provide your "Authorization header"
- Open https://wordpress.com/ in a new tab.
- Click on "View -> Developer -> Developer Tools" or press "Ctrl + Shift + I" to open DevTools.
- Select "Network" tab.
- Reload the page.
- Click "Save settings"
- Have fun!
- Sometimes you can encounter errors with A4A sites deletion. It's expected, since deletion of their plans takes some time at the backend. Just try to delete them again in 1-2 minutes.
- The extension removes items sequentially, so keep it open until the process completes. This approach avoids overloading our servers. We may later rewrite it to send all requests simultaneously.
If you encounter issues or need new functionality, create a branch with proposed changes or add an issue to this repo. For questions, mention me (@nightnei) here or on Slack.