Skip to content

Added an API to delete report by email

Issue #54

Added an API to delete all reports corresponding to an email

Flow of deletion

  1. Parse the request body for email.
  2. Get all the id of reports corresponding to the email.
  3. Loop through the IDs and delete the corresponding minidump and txt files.
  4. Delete the comments and reports rows as per the IDs in an SQL Transaction.

I have registered this handler to the URL/auth/reports/delete/email route, which can be called via the POST method. It expects a JSON body with an email address in it like the one below. I can change it as per the needs of the project.

{
  "email": "example@email.com"
} 
Edited by Achintya Singh

Merge request reports