def METHOD_NAME():
    """Delete some entities of different types and check audit logs for
    these events using entity type as search criteria
    :id: de9b056f-10da-485a-87ce-b02a9efff15c
    :expectedresults: Audit logs contain corresponding entries per each
        delete event
    :CaseImportance: Medium
    """
    for entity in [
        entities.Architecture(),
        entities.Domain(),
        entities.Host(),
        entities.HostGroup(),
        entities.Location(),
        entities.Role(),
        entities.UserGroup(),
    ]:
        created_entity = entity.create()
        created_entity.delete()
        audits = entities.Audit().search(
            query={'search': f'type={created_entity.__class__.__name__.lower()}'}
        )
        entity_audits = [entry for entry in audits if entry.auditable_name == created_entity.name]
        assert entity_audits, f'audit not found by name "{created_entity.name}"'
        audit = entity_audits[0]
        assert audit.auditable_id == created_entity.id
        assert audit.action == 'destroy'
        assert audit.version == 2