Thesis adviser is demanding i hand over all my work
This sounds like he sees value in the work and wants it completed. It also sounds like you are refusing to collaborate in its completion and so he feels that he has to carry it on alone. But you hold the data he needs to do so. 

Whether he is entitled to the work or not depends on how much he contributed to it. But no researcher likes to leave ideas unfulfilled so he is frustrated and probably acting badly. But if you refuse, absolutely, to help, then you are probably acting badly also. Unwillingness to go beyond the minimum requirements isn't a very strong recommendation. 

It would be good if the work could be completed and papers written with your name attached to them. Even if he does the work and lists you as second author in some publications you have gained something. 

But withholding the work won't get you or anyone anywhere. Others may actually do the work following similar but independent lines of thought leaving you out entirely. Parallel, independent, work is a very common phenomenon. 

If he hasn't contributed anything and you intend to finish the work independently then the story might be different, but that sounds unlikely from what you write.