Deletes the specified favorite page from the current Wix user's list of favorite dashboard pages. If no favorites remain in the list, it is deleted.
function deleteUserFavorite(
favoriteId: string,
): Promise<DeleteUserFavoriteResponse>;
ID of the favorite page to delete from the list.
import { favoriteList } from "@wix/dashboard-management";
async function deleteUserFavorite(favoriteId) {
const response = await favoriteList.deleteUserFavorite(favoriteId);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.