I wanted to remove multiple databases by setting 'name' to all, and with 'when' condition regarding specific name. Unfortunately after this failed I checked in documentation:
name=all May only be provided if state is dump or import.
Is there a workaround to remove all (mysql) databases that match specific name (for example all with names starting with "temp_20200422_" ?