Sorry for safety of other users I had to remove part of your above mentioned commands.
People searching the web will not be aware of the context and might run this without knowing what they do.
This potentially kills all data of Zammad.
If you want to remove all customers (and thus of course all tickets along them) why not reset the whole instance then?