# delete\_rsc

Source: https://zotonic.com/docs/1787/delete_rsc

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

Language: en



Delete a [resource](/id/doc_glossary#term-resource), without confirmation.

Arguments:

- `id` is the resource to delete.
- `on_success` can be repeated to run actions after a successful deletion.

The server checks `z_acl:rsc_deletable/2` before deleting. For user-facing controls, prefer <a href="/id/doc_template_action_action_dialog_delete_rsc" class="doc-reference doc-reference-action"><code>action#dialog_delete_rsc</code></a> so deletion must first be confirmed.

```django
{% wire id="delete-now" action={delete_rsc id=id on_success={redirect back}} %}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1787?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/1787?language=en>)
