---
title: Delete All Firewall Rules
slug: homologacao-atmosphere/delete-all-firewall-rules
description: Learn how to delete all firewall rules using a PowerShell command with this comprehensive document. It covers the necessary parameters, offers a step-by-step example, and outlines the values returned by the command, including output, errors, and warnings.
createdAt: 2022-07-25T17:44:37.000Z
---

## Resumo

- Exclui todas as regras de firewall.

## Parâmetros

Utiliza parâmetros do módulo [Powershell Command](https://docs.simonops.com/homologacao-atmosphere/powershell-command).

## Exemplos

```yaml
- name: Delete All Firewall Rules
  powershell_command:
    server: "{{ input.server }}"
		ssl: "{{ input.ssl }}"
    username: "{{ input.username }}"
    password: "{{ input.password }}"
		show_errors: "{{ input.show_errors }}"
		show_warnings: "{{ input.show_warnings }}"
    command: |
      Remove-NetFirewallRule
  register: result
  - debug:
    msg: |
      {{ result.output }}
      {{ result.had_errors }}
      {{ result.output_errors }}
      {{ result.output_warnings }}

  
```

## Valores retornados

| **Chave**        | **Tipo** | **Retornado quando** | **Descrição**              |
| ---------------- | -------- | -------------------- | -------------------------- |
| output           | string   | Sempre               | Saída da execução          |
| had\_errors      | boolean  | Sempre               | Se teve erros              |
| output\_errors   | string   | Sempre               | Erros de saída da execução |
| output\_warnings | string   | Sempre               | Avisos de saída            |

