What about control panel? Can you delete the file from control panel?
---
The last solution i propose is to try this simple script. Be sure before using it to make backup!
PHP Code:
<?php
$i=0;
if(!isset($_GET['n_file']))
echo 'Select file to delete: <br>'.PHP_EOL;
foreach (glob("./*") as $filename)
{
$found[] = $filename;
if(!isset($_GET['n_file']))
echo '<a href="'.$_SERVER['PHP_SELF'].'?n_file='.$i++.'">'.$filename.'</a><br>'.PHP_EOL;
}
if(isset($_GET['n_file']))
{
if(!file_exists($found[$_GET['n_file']]))
die('The file '.$found[$_GET['n_file']].' doesn\'t exist');
if(unlink($found[$_GET['n_file']]))
echo 'file '.$found[$_GET['n_file']].' deleted';
else
echo 'there are some problems with unlink()';
echo '<br><br><a href="'.$_SERVER['PHP_SELF'].'">reload</a>';
}
?>
Just create a php file in the directory you want delete the file, then paste the code, visit the page and click on file you want to delete.
The file appears in the list? What is the script response?
Bye!