# Drop database with Elixir releases

**URL:** <https://forum.elixirforum.com/t/drop-database-with-elixir-releases/32229>\
**Category:** Questions\
**Tags:** ecto, databases, phoenix, deployment, releases, gigalixir\
**Created:** [June 9, 2020, 2:10pm UTC](https://forum.elixirforum.com/t/drop-database-with-elixir-releases/32229 "2020-06-09T14:10:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![samba6](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/samba6/32/38157_2.png) [@samba6](https://forum.elixirforum.com/u/samba6)\
**Post date:** [June 9, 2020, 4:44pm UTC](https://forum.elixirforum.com/t/drop-database-with-elixir-releases/32229/2 "2020-06-09T16:44:47Z")

</div>

Try the following:

## Enter remote console:

`gigalixir ps:remote_console`

## Then run your command:

`_build/prod/rel/release_name/bin/release_name eval "Backend.Release.ecto_drop"`

This way you never need to invoke `iex`.

See **Ecto migrations and custom commands** section in phoenix documentation [Deploying with Releases](https://hexdocs.pm/phoenix/releases.html)

---

_[View the full topic](https://forum.elixirforum.com/t/drop-database-with-elixir-releases/32229)._
