I solved by disabling the Grid Object, that is, closing the screen where the Grid Object is executing and executing the function that allows me to delete.
$FileDelete($GetAppPath() &"Data Historica LCB_USB.txt")
$wait (100)
$File_Copy=$FileCopy ($GetAppPath() &"Data Historica LCB_USB - Copy.txt", $GetAppPath() &"Data Historica LCB_USB.txt",30)
Select Case $File_Copy
Case -1
MsgBox "Timeout time expired. "
Case 0
MsgBox "file not deleted.."
Case 1
MsgBox "Success: file deleted."
End Select