For a client-side solution, here's a userscript which will remove all of your favorites - just install it with something like Tampermonkey, go to your profile's favorites tab, e.g.,
https://stackoverflow.com/users/9515207/certainperformance?tab=favorites
and it'll do the work from there, ending once all favorites and pages have been iterated through and removed:
// ==UserScript==
// @name Stack Remove Favorites
// @author CertainPerformance
// @include /^https?://stackoverflow\.com/users/\d+/.+\?.*tab=(bookmarks|favorites).*$/
// @grant none
// ==/UserScript==
const RATE_LIMIT = 1000;
const delay = ms => new Promise(res => setTimeout(res, ms));
const unfavorite = (questionId) => (
fetch(
`https://stackoverflow.com/posts/${questionId}/vote/5?undo=true`,
{
method: 'POST',
credentials: 'same-origin',
headers: {
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'
},
body: `fkey=${StackExchange.options.user.fkey}`
}
)
.then(res => res.json())
);
const getFavoriteQuestionIds = () => Array.from(document.querySelectorAll(
'#user-tab-bookmarks .s-post-summary--content-title.s-link'
)).map(x => x.href.match(/\d+/)[0]);
const removeFavoritesAndRefreshPage = async () => {
const favs = getFavoriteQuestionIds();
if (favs.length === 0)
return;
for (let i = 0; i < favs.length; i++) {
const questionId = favs[i];
console.log(`Unfavoriting ${questionId}...`)
await unfavorite(questionId);
await delay(RATE_LIMIT);
};
// Refresh page.
window.location.href = window.location.href;
};
setTimeout(removeFavoritesAndRefreshPage, RATE_LIMIT);
(Remember to disable or uninstall it afterwards if you want to be able to continue using favorites.)
POST https://stackoverflow.com/posts/{id}/vote/5?undo=true
on all of them.infavorites:mine
orinfavorites:1717729
? For example, to search within your favorites for questions tagged[r-faq]
. I consider my numerous collection of favorites to be my own personal corner of SO and use this focused search capability frequently to limit my search results to Q&A I have previously found particularly helpful.