Delete Enduser ISO

Use the Delete Enduser ISO API to delete the ISO(s) added by the enduser by passing the UUID of the ISO. The UUIDs can be obtained by the List Enduser ISO API. The API response will contain “done” as “true” after the ISO has been successfully deleted.

HTTP Request

https://hostname:4085/index.php?act=euiso

Parameters

NameMethodValueDescriptionRequired
actGETeuisoThe action will return done as true on successfull deletionYes
delPOSTtextThe UUID of the enduser iso to be deleted. For deleting multiple ISOs pass in the UUIDs as comma separated valuesNo

Sample Code

<?php

    require_once('/usr/local/virtualizor/sdk/admin.php');

    $key =  'your_api_key';
    $pass = 'your_api_pass';
    $ip = 'your_server_ip';

    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $post = array();
    $post['del'] = 'i8fmliku9zqwamze';
    $post['del'] = 'i8fmliku9zqwamze,zlkw7gpzcr6b0ev4'; // for deleting multiple values

    $output = $admin->delete_euiso($post);

    print_r(json_encode($output));

?>

Output

{
    "title": "Enduser ISO(s)",
    "todel": {
        "i8fmliku9zqwamze": {
            "isoid": "2",
            "uuid": "i8fmliku9zqwamze",
            "uid": "55",
            "pid": "0",
            "iso": "ttrrr.com.iso",
            "size": "67108864",
            "downloaded": "67108864",
            "download_time": "1537185743",
            "deleted": "0"
        },
        "zlkw7gpzcr6b0ev4": {
            "isoid": "3",
            "uuid": "zlkw7gpzcr6b0ev4",
            "uid": "60",
            "pid": "0",
            "iso": "test.email.gmail.co.iso",
            "size": "67108864",
            "downloaded": "67108864",
            "download_time": "1537185812",
            "deleted": "0"
        }
    },
    "done": true,
    "euisos": null,
    "timenow": 1537187164,
    "time_taken": "0.166"
}
Was this helpful to you?