how to delete file when it is in use code example Example: delete a file in cmd windows del /f filename.type