The Batch file below deletes all files with names that start with "file" placed inside "special\program" folder:
cd "special\program"
del /S file*.*
If you want to delete files with names that contain "file" at any place, just change the wild-card by: *file*.*
EDIT: Reply to the comment
In your question you said: "i would like to delete the files with the name "file" in them", so I thought you want to delete the files that have "file" in any part of the filename. Now you said in a comment that you want the reverse thing! I strongly encourage you to edit your question and make this point clear including the fact that you changed the original question; otherwise the people that may read this topic will be confused until they read your small comment at the very end of the topic... :-(
Anyway, the Batch file below do what you want (I hope so), that is: delete all .rar files in "special\program" folder excepting those that have "file" substring in any part of the file name.
@echo off
setlocal EnableDelayedExpansion
for /R "special\program" %%a in (*.rar) do (
set "filename=%%~Na"
if "!filename:file=!" equ "%%~Na" del "%%a"
)