Owner forcing us to move out in 1 month

We(bachelors) have rented out a flat in may-23 in Bengaluru. Before paying the deposit and moving in the owner said he is OK with bachelor's staying in. With in a 3 months, we came to know the building owners made a decision to not rent the flats to bachelors and our owner is asking us to vacate in a month. When asked about the deposit amount, he is deducting painting charges(one month rent) from our deposit amount. We have stayed merely 3 months. How can we proceed to recover our full deposit amount?

He( owner) lied to the building owners saying one of us will be getting married and the remaining guys will move out, but he didn't said any of this to us before moving.