Added an API to delete report by email
Issue #54
Added an API to delete all reports corresponding to an email
Flow of deletion
- Parse the request body for email.
- Get all the
id
of reports corresponding to the email. - Loop through the IDs and delete the corresponding
minidump
andtxt
files. - 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