# Criar ação de excluir a linha e transferir ela para outra tabela

**URL:** <https://community.glideapps.com/t/criar-acao-de-excluir-a-linha-e-transferir-ela-para-outra-tabela/75311>\
**Category:** Ask for Help\
**Created:** [July 31, 2024, 12:00pm UTC](https://community.glideapps.com/t/criar-acao-de-excluir-a-linha-e-transferir-ela-para-outra-tabela/75311 "2024-07-31T12:00:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathan4\_real](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathan4_real/32/78196_2.png) [@Nathan4\_real](https://community.glideapps.com/u/Nathan4_real)\
**Post date:** [July 31, 2024, 12:00pm UTC](https://community.glideapps.com/t/criar-acao-de-excluir-a-linha-e-transferir-ela-para-outra-tabela/75311/1 "2024-07-31T12:00:50Z")

</div>

Eu tenho um app de Reembolso, onde a pessoa preenche um formulario com os dados, e esses dados ficam em uma aba diferente apenas para o administrador, só que eu quero quero criar uma ação onde quando o administrador finaliza o reembolso ele exclui a linha e transferir esses dados para outra tabela de “reembolsos finalizados”

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [July 31, 2024, 12:07pm UTC](https://community.glideapps.com/t/criar-acao-de-excluir-a-linha-e-transferir-ela-para-outra-tabela/75311/2 "2024-07-31T12:07:54Z")

</div>

One way to do it is hiding the row instead of deleting it.

Add a new column to the refunds table “is deleted” when you want to delete the row just mark the new column with an x.

On the front end add a filter to the collection where “is deleted” is empty.

To hide the row and move it at the same time you could use a custom action on a button or collection action.

First set column value column “is deleted” followed by an add row to your archive table

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 1, 2024, 12:27am UTC](https://community.glideapps.com/t/criar-acao-de-excluir-a-linha-e-transferir-ela-para-outra-tabela/75311/3 "2024-08-01T00:27:05Z")

</div>

Does it have to be moved though? Can’t you just have a boolean column to determine the refund’s status like what Eric suggested above?
