Pipeline should not start if file has been deleted

Hello,
We have GitLab projects where everyone works together in the Master Branch. Now it also happens that colleagues delete a file that is no longer needed, after the commit/push a pipeline is started. Is there any way to prevent this?

So if only files were deleted in a commit!

Many thanks for your support.