# remove

Source: https://zotonic.com/docs/1415/remove

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

Language: en



Remove an element from the page.

For example, the following removes the foo div from the page:

```django
<div id="foo">I am the foo div</div>
{% button text="Remove foo" action={remove target="foo"} %}
```

Without target, the action removes its triggering element:

```django
{% button text="Click me to remove me" action={remove} %}
```

License: 

Attribution: 

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