Misunderstanding between two friends.

I'm Male in mid 20's finished engineering with active backlogs and unemployed.

My friend works as an consultant since couple years. Few months ago he asked me a favour to help with his work to complete his clients applications and he will give me x(fixed) amount as commission for an application.The work was done with my personal laptop for some months and I've worked very hard mostly sleep less nights 18-20 hours of work and no holiday because earnings are as good as fresher in IT(information technology) so i also didn't minded working overtime and no one forced me to work (im happy to work because there is no fixed salary more i work, more i might earn)

[IMPORTANT He suggested me to create a google sheet in my account to maintain the due payments information in that and he told me to mention clients username, password,(I don't like this system to add user credentials but I can't no anything about it(not security questions)status, amount etc. he used to clear payments twice in a month and mark them as payment cleared.]

The payment is cleared in an unethical way(he used to give my upi id to his ramdom clients and they used to send some random amount, this process is repeated until my payment is satisfied) I don't have any payslip, agreement, just whatsapp messeges and a group chat.

After few months he changed the payment system to fixed salaried system which will be 3-4 times less pay compared to previous system. But he expected me to work like same. But before accepting the work I clarified all the doubts and said I'll work limited hours same as corporate and mentioned if I don't like the work or feel pressurized I'll leave.And he also agreed and told me to inform him few days earlier. There is no agreement just word of mouth. I'm working 8-9 hours a day, 1 weekoff and updates him about work every hour or half n hour and he gave his personal laptop.

10 days are passed and told me to work over time as I'm not working as like previous i used to (the nature of this work is purely luck based some days you cant even complete even 1 application... But another day you might end up completing 2 or 3 applications. (but anyhow there are no targets system in this work because it is purely luck based work and made sure to ask him no targets as our contract)

I Said i cant work over time for same salary and I'll leave this work after this month. At month end I've completed 4 applications but then he said he will pay previous rate which is X amount for an application. which will be equal to half of my current month salary. And also made me another offer to can't leave me (he'll pay half of what he used to pay in the beginning, i said I'll think about it). But according to what we have discussed after his change of policies he should pay me a fixed salary with or without completing single application(as it is purely luck based work). because i haven't completed monthly targets which weren't discussed in the first place he can't pay me full (To be honest I worked 8-9 hours a day)the completion of work is in not in my hands but i did 8-9 hours of work.

From here whatsapp chat:

Then i said i did everything according to our contract you must pay full salary.

Then he added by only means of freindship he'll pay full salary. And complete some extra work which is not mine to do. And then he kept half of the payment on hold to make me do the extra work. ( he added this Even after i did everything as what he said and blamed me like he is paying only for friendship but not for the work he made me do)

Then i got angry (i made him so much of profit all these months he treats me like this, even holding payment to complete his work). Then I explained him the whole contract. And i mentioned by only means of freindship i dont want to argue more and I'll also do extra work which is not mine to do.but please complete the payment now.and I cant force you more.

Then he settled the payment and let me go of extra work. All these happened without mistake from my side. Im also sad because i lost my friendship.

Next day i handed over his laptop. Then He removed access to everything which is his own property(from my personal laptop and mobile).

[IMPORTANT And then i removed his access to my sheets (payments relatedsheet till change of policies) (before the salary system contract) which are not being touched morethan month ago and not needed anymore because in fixed salary system im not told to add client details and payment (commission amount) there]

Then He asked to me to delete everything in that sheet and give access to him for confirmation. I gave access and he deleted it himself and after that I deleted the whole empty sheet. He again asked did i deleted the sheet and i replied yes.

And requested me to delete everything related to work from my personal laptop.

I deleted everything related to him.

HERE COMES THE MAIN ISSUE

Couple of days later, he messaged me on WhatsApp:

Why did you removed me from the sheet. That is my data you dont have any right.

But actually im the owner of the sheet and it is there in my account and created the sheet on mutual understanding. and he is the just the moderator

I felt there is no need of that sheet and since we are no more working together and he is a third party accessing my property.( I googled before removing him and according to google what i did was right (correct me if im wrong)

I replied, because the same reason you removed me from your sheets.

Then he asked are you partner or employee.

I replied, while using that payment sheet we are partners.

And replied, i wanted to delete the sheet but you also want same and did deleted the sheet and it is vanished now So there is no point of arguing.

Then he replied, you are an employee not partner... Etc.

Here i can agree technically i might be an employee for only one month which is (Nothing to do with that sheet. But he's talking non sense and if i agree he will blame me from beginning and scape goating me to keep his unfair dominance on me.) by keeping that in mind i never agreed. And i asked him to show me the agreement where you or me mentioned I'm working under you as an employee. Before or after anytime.

From the beginning also i never behaved as an employee(and i never thought he wants to treat me as employee as he never mentioned)and i never treated as a boss. Infact he came to me for help/favour. And mentioned if you ever felt like that you should have told me i would have stopped helping/ (working with) you

I remembered him that and. He replies if you are helping me why you didn't do it for free. And he never listens to me and hanged up the by blaming me more.

Then i understood i can't argue with him anymore because. Why someone is going to help to make money for free for several months long. If you asked personal related help which will not deal with make you earn money on me, I would have helped you for free. But here it is about earning and why i will help him to make money for free. I don't know but he sounded drunk on phone call.

Since he is not ready to listen i replied to all his misunderstandings in WhatsApp. and I felt sad for loosing friendship and messeged him to sit and sort it out.

All i did this for my self respect and never crossed my boundary or never let someone Cross my boundary never used bad words (both parties) during entire situation.

So real problem here is. Do i face any legal consequences. I also feel threat to me as he is super rich. What should i do to protect myself. (I might be overthinking but i really had a feeling something bad is going to happen) (I kept some proofs with me but i dont want to disclose them publicly)

Please Suggest me what should i have done. And what should i do now?

I tried to shrink this post as much as possible after removing not so important topics but still it's much bigger. Sorry for testing your patience and valuable time and Thank you, it means a lot.