the code to delete the file is after the code to delete the record.
in the delete record server behavior, you have set it to redirect to the automobili_Lista.php page, this redirect is happening before the file can be deleted.
move the delete file code to be before the delete record code.