Deleting Test Data

This document covers the scenario where an App Center Test customer has a client of their own whose test report data resides on the same account. When this client of the customer requests deletion of their data, App Center Test has APIs to satisfy this request. All the APIs detailed are public, exposed in our swagger and discoverable through https://openapi.appcenter.ms/#/test. For more information, refer to the App Center GDPR documentation.

Deleting Test Data

When a client requests deletion of their test reports, service this request using the follow process:

1. Generate an API token.

2. Make the following API call to acquire a list of all the test runs ids owned by the client requesting deletion. You will need the owner name (this could be a user name or organization name) and the app name.

GET /v0.1/apps/{owner_name}/{app_name}/test_runs

For example:

GET https://appcenter.ms/api/v0.1/apps/CompanyOrg1/AndroidApp1/test_runs

3. For each of the app ids gathered in the previous step, make the following API call to delete the test run

DELETE /v0.1/apps/{owner_name}/{app_name}/test_runs/{test_run_id}

For example:

DELETE https://appcenter.ms/api/v0.1/apps/CompanyOrg1/AndroidApp1/test_runs/0ce0x71b-82ce-4d7a-8ce5-404a6a50d91a

4. Completion of this task is achieved only if all the deletion calls return success.