Delete a Scan

Link to Delete a Scan copied to clipboard

Scans can accumulate pretty quickly while testing for accessibility. After sending a scan to the axe DevTools Mobile Dashboard and determining it's no longer needed, use the below API to remove the scan from the dashboard. The ability to remove results no longer necessary helps highlight the scans in the dashboard that require attention.

Deleting a scan is only supported within automated testing.

Delete a Scan from the Result Key

When pushing a scan to the dashboard, you'll get an AxeDevToolsResultKey object returned within the result. From the result, use this key to remove the scan from the dashboard.

var axe = AxeDevTools()
val rule: ActivityScenarioRule<MainActivity> = ActivityScenarioRule(

open fun runAccessibilityScan() {
    rule.scenario.onActivity { activity ->
        result = axe.scan(activity)?.uploadToDashboard()
        result?.axeDevToolsResultKey?.let { axe.deleteResult(it) }