Removing a file with sensitive data in all commits in server gitlab

Today I observed that in an error, someone uploaded confidential information by removing the .env.testing file from the .gitignore

When I’ve gone to find information on the subject, it all leads me to github, but I doubt I’ve read that Gitlab has a different mechanism to do a sweep and remove all occurrences of that file in server and local commits.

Is this possible or am I wrong and I have to use the tool that is offered to me on Github,