With the Container architecture, we can have multiple Hanami applications running under apps/
. We can generate new applications for different components that we want to add to our project.
To destroy one of them:
This removes an application named Admin
under .
$ bundle exec hanami destroy action web books#show
The first argument, web
, is the name of the target application in a Container architecture. It must be omitted if used within an Application architecture:
The argument is the name of the controller and the action separated by the number sign (#
).
We can destroy a model.
We can destroy a migration.
It deletes the migration with the corresponding name (eg. ).
We can destroy a mailer.
$ bundle exec hanami destroy mailer welcome