> 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 # DeleteReport # Package: feedbackModeration # Namespace: ReportsService # Method link: https://dev.wix.com/docs/api-reference/crm/community/feedback-moderation/reports-v2/delete-report.md ## Permission Scopes: Manage Reports: SCOPE.DC_REPORTS.MANAGE-REPORTS ## Introduction Deletes a report and removes it from the report list in the dashboard. Site members and visitors can only delete their own reports. --- ## REST API ### Schema ``` Method: deleteReport Description: Deletes a report and removes it from the report list in the dashboard. Site members and visitors can only delete their own reports. URL: https://www.wixapis.com/reports/v2/reports/{reportId} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: reportId Method parameters: param name: reportId | type: none | required: true Return type: DeleteReportResponse EMPTY-OBJECT {} ``` ### Examples ### Delete Report ```curl curl -X DELETE \ https://www.wixapis.com/reports/v2/reports/dd7cfd02-1837-4fb8-bc6f-86316f0984a9 \ -H 'Authorization: ' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.feedbackModeration.ReportsService.deleteReport(reportId) Description: Deletes a report and removes it from the report list in the dashboard. Site members and visitors can only delete their own reports. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: reportId Method parameters: param name: reportId | type: string | description: GUID of the report to delete. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### deleteReport ```javascript import { reports } from '@wix/reports'; async function deleteReport(reportId) { const response = await reports.deleteReport(reportId); }; ``` ### deleteReport (with elevated permissions) ```javascript import { reports } from '@wix/reports'; import { auth } from '@wix/essentials'; async function myDeleteReportMethod(reportId) { const elevatedDeleteReport = auth.elevate(reports.deleteReport); const response = await elevatedDeleteReport(reportId); } ``` ### deleteReport (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 { reports } from '@wix/reports'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { reports }, // Include the auth strategy and host as relevant }); async function deleteReport(reportId) { const response = await myWixClient.reports.deleteReport(reportId); }; ``` ---