# dialog\_delete\_rsc

Source: https://zotonic.com/docs/2057/dialog_delete_rsc

URI: https://zotonic.com/id/2057

Language: en



Open a dialog to confirm the deletion of a [resource](/id/doc_glossary#term-resource).

Arguments:

- `id` is the resource to delete.
- `on_success` can be repeated and is forwarded to the actual deletion action.

The dialog is only opened when the current user may delete the resource. Its body is selected with the category-aware `_action_dialog_delete_rsc.tpl`.

```django
{% button text="Delete" action={dialog_delete_rsc id=id on_success={redirect back}} %}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2057?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2057?language=en>)
