Welcome to the Wefugees Community and thank you for your question.
It's possible to resign an Ausbildung. Usually, you have to give a 4-week notice in order to do that. After handing in the Kündigung you should stay with the company that you are currently doing your Ausbildung with, until the four weeks have passed. After that it shouldn't be a problem to start your new Ausbildung.
And you think it's a problem not to finish my first year of ausbildung and just go back home for 1 month?
Quick question: Are you a refugee with a residence permit, or what exactly is your background?
In general, it's totally fine to decide to change the subject of your Ausbildung and/or the company you are doing it with. And of course you are free to do whatever you want in the meantime. If you are a refugee, however, returning to your home country is not a good idea because you will lose your refugee status in Germany.