0

I would like to ask about the name of this movie. The movie includes a girl whose father deprives her of an inheritance after knowing that her mother has allowed her to take her share of it, and he sends her to a mental institution to erase her memory, by knocking a nail from her nose to her mind

Edited comment

Maybe “Sucker Punch” (2011)?
https://www.imdb.com/title/tt0978764/
Detailed plot summary on Wikipedia here:
https://en.wikipedia.org/wiki/Sucker_Punch_(2011_film)

Apart from the inheritance part, the basic premise matches your description.