Deleting an abuse report

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

The following code example shows how you can delete an abuse report from the system database.

 

[C#]

 

using CMS.SiteProvider;

 

...

 

        // First get the abuse report info by its ID

        AbuseReportInfo ari = AbuseReportInfoProvider.GetAbuseReportInfo(1);

 

        if (ari != null)

        {

            // Delete the abuse report

            AbuseReportInfoProvider.DeleteAbuseReportInfo(ari);

        }    

 

Page url: http://devnet.kentico.com/docs/5_5r2/devguide/index.html?api_deleting_an_abuse_report.htm