> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # DeleteUserFavoriteList # Package: dashboard # Namespace: DashboardFavoritesService # Method link: https://dev.wix.com/docs/api-reference/business-management/dashboard/dashboard-favorite-list/delete-user-favorite-list.md ## Permission Scopes: Manage Dashboard: SCOPE.DC-OS.MANAGE_DASHBOARD ## Introduction Deletes the Wix user's list of favorite dashboard pages. --- ## REST API ### Schema ``` Method: deleteUserFavoriteList Description: Deletes the Wix user's list of favorite dashboard pages. URL: https://www.wixapis.com/dashboard/v1/user-favorite-list/{favoriteListId} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: favoriteListId Method parameters: param name: favoriteListId | type: none | required: true Return type: DeleteUserFavoriteListResponse EMPTY-OBJECT {} ``` ### Examples ### Delete User Favorite List ```curl curl -X DELETE \ 'https://www.wixapis.com/dashboard/v1/user-favorite-list/c959d429-3136-41cb-9478-6acbd064e0fa' \ -H 'Authorization: ' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.dashboard.DashboardFavoritesService.deleteUserFavoriteList(favoriteListId) Description: Deletes the Wix user's list of favorite dashboard pages. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: favoriteListId Method parameters: param name: favoriteListId | type: string | description: GUID of the dashboard favorite list to delete. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### deleteUserFavoriteList ```javascript import { favoriteList } from '@wix/dashboard-management'; async function deleteUserFavoriteList(favoriteListId) { const response = await favoriteList.deleteUserFavoriteList(favoriteListId); }; ``` ### deleteUserFavoriteList (with elevated permissions) ```javascript import { favoriteList } from '@wix/dashboard-management'; import { auth } from '@wix/essentials'; async function myDeleteUserFavoriteListMethod(favoriteListId) { const elevatedDeleteUserFavoriteList = auth.elevate(favoriteList.deleteUserFavoriteList); const response = await elevatedDeleteUserFavoriteList(favoriteListId); } ``` ### deleteUserFavoriteList (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { favoriteList } from '@wix/dashboard-management'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { favoriteList }, // Include the auth strategy and host as relevant }); async function deleteUserFavoriteList(favoriteListId) { const response = await myWixClient.favoriteList.deleteUserFavoriteList(favoriteListId); }; ``` ---