# Excluir Pet

Para exclusão a partir da lista, a abstração CatCRUDComponentBase já possui um método pronto chamado **deleteSelected** que permite a exclusão dos dados selecionados de forma pouco verbosa e transparente. Para mais detalhes clique [aqui](/abstracoes/crudcomponentbase.md#d-delete).

{% hint style="info" %}
Iremos incluir um botão no content do datatable que será exibido apenas se selecionarmos algum item da lista.
{% endhint %}

{% code title="page-adoption.component.html" %}

```html
...

<cat-datatable [config]="listConfig">
  <nav list-checked-actions>
    <cat-icon-button
      (click)="deleteSelected()"
      icon="fa-solid fa-trash-can"
      tooltip="Excluir Selecionados">
    </cat-icon-button>
  </nav>

  ...
</cat-datatable>
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.catui.igordrangel.com.br/guias/criando-uma-aplicacao-de-crud/excluir-pet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
