Reset database to start from zero

Infos:

  • Used Zammad version: 2.3.x
  • Used Zammad installation source: (source, package, …) deb
  • Operating system: Ubuntu 16.04
  • Browser + version: Chrome latest

I have just a question. Is there a way to delete the hole database to start from zero?
I have tried and configre a lot. Now i would reset the database to start from zero.

If you used DEB or RPM package:
shell> zammad run rails c

If you isntalled from source:
shell> rails c

then:

rails> Ticket.destroy_all
rails> OnlineNotification.destroy_all
rails> ActivityStream.destroy_all
rails> RecentView.destroy_all
rails> History.destroy_all

3 Likes

Hi @babakkazemi thanks for your reply it works perfect.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.