When using Diagnostic Assist Function
WARNING: This page is about a different car, the 2017 Mazda 3. However, it is still accessible from the selected car via links, so may be relevant.
Clearing DTC can also be performed by launching the diagnostic assist function of the connectivity master unit. (See DIAGNOSTIC ASSIST FUNCTION [CONNECTIVITY MASTER UNIT] .)