i try to remove a file with Drive.Files.remove(fileId) before make some operations with SpreadsheetApp.openByUrl() but it fails with the error
Drive.Files.remove(fileId)
SpreadsheetApp.openByUrl()