This question has already been answered:
Good evening.
After the introduction of a new security policy in the company, they asked to clean the list of files from commits (files can be stored locally, but not be accessible via git BitBucket).
How to "clear" all traces about the contents of files from the git repository?
filter-branch, and similar questions have already been raised here 100%. - D-side