Trying to join the army

Hey everyone I need some advice it's been a goal of mine to join the army ever since I was in JROTC in high school but i have been struggling to lose weight for a while now for my height I am almost 30 pounds overweight and I've been dieting, exercising, cutting back on junk food, detoxing doing everything I can and it seems like nothing is happening and I am really starting to lose hope I really want to join the army but I'm struggling bad hopefully you guys can help me out and give me some suggestions please and thank you!

**Update**

Thank you all for your advice I started doing my calorie counting and I've already went from 172.8 to 167.3 so it's a start and I also went and talked to a recruiter today and they told me to come back next week and take the pre assessment and also start workouts so I'm excited thank you guys so much I'll keep you posted!