Hi
I am trying to delete a folder/file using the api, but it it not working
There is a folder "2010" and a file "i.html"
Here is my api call ( php )
The above function will login as the user, using the admin password ( login-as method , admin|{username}
I get this output
Array
(
[error] => 0
)
However, when I checked the file it is not deleted
Debug info
[root@da directadmin]# ./directadmin b2000 | grep string
Please let me know why Da is not deleting file
I am trying to delete a folder/file using the api, but it it not working
Code:
[root@da backups]# pwd
/home/ykbrgyxrx/domains/ykbrgyxrx.com/public_html/backups
[root@da backups]# ls
2010 i.html
[root@da backups]#
There is a folder "2010" and a file "i.html"
Here is my api call ( php )
PHP:
$da_username = "ykbrgyxrx";
$path = "/domains/ykbrgyxrx.com/public_html/backups/";
$file = "i.html";
$array = array('action' => 'multiple',
'path' => $path ,
'button' => 'delete',
'path' => $path ,
'select0' => $file
);
$result = connect_da('/CMD_API_FILE_MANAGER',$array,"GET",$da_username);
echo "<pre>";
print_r($result);
The above function will login as the user, using the admin password ( login-as method , admin|{username}
I get this output
Array
(
[error] => 0
)
However, when I checked the file it is not deleted
Debug info
[root@da directadmin]# ./directadmin b2000 | grep string
Code:
Post string: action=multiple&path=%2Fdomains%2Fykbrgyxrx.com%2Fpublic_html%2Fbackups%2F&button=delete&select0=i.html
Please let me know why Da is not deleting file