Maybe just `delete_by_type/2`?