learningoptiontrading,
I do not want to make light of your loss. Many here have suggested better ways to trade earning or sell puts with protection around earnings. I'm going to tell you from someone that has been in the business since 1981 and trade options professionally for 25 years, that trading earnings is very hard and should be avoided without a process in place that is more than a feeling that that a stock will or won't make a move from earnings. My suggestion is to avoid earning at the beginning of your option learning. Let's call it an expensive lesson.
Bob
The OP likely fell victim to one of the many "option income" promoters who like to headline their websites with the claim that "96% OF OUR TRADES ARE SUCCESSFUL!"
Yes, that is often true. But the OP just experienced what the other 4% is all about. He should count his blessings if he survives it.