> 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 # Method name: deleteGallery(galleryId: string, options: DeleteGalleryOptions) # Method package: wixProGalleryBackend # Method menu location: wixProGalleryBackend --> proGallery --> deleteGallery # Method Link: https://dev.wix.com/docs/velo/apis/wix-pro-gallery-backend/pro-gallery/delete-gallery.md # Method Description: Deletes a gallery. When a gallery is deleted, the deleted gallery is no longer returned when calling the [`listGalleries()`](/pro-gallery/list-galleries) function. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Delete a gallery ```javascript import { proGallery } from 'wix-pro-gallery-backend'; // Sample galleryId value: 'f7cca0a0-5bb5-44c2-a0f8-6496430b3154' export async function myDeleteGalleryFunction(galleryId) { try { const deletedGalleryId = await proGallery.deleteGallery(galleryId); console.log('Success! Deleted the gallery:', deletedGalleryId); return deletedGalleryId; } catch (error) { console.error(error); // Handle the error } } /* Promise resolves to: * { * "galleryId": "f7cca0a0-5bb5-44c2-a0f8-6496430b3154" * } */ ``` ---