Description

This function deletes an Apache MIME type handler.

Examples 




https://hostname.example.com:2083/cpsess##########/execute/Mime/delete_handler?extension=.foo



$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Delete handler from ".foo"
$mime_delete_handler = $cpanel->uapi(
    'Mime', 'delete_handler',
    array(
        'extension'    => '.foo',
 )
);



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
# Delete handler from ".foo"
my $mime_delete_handler = $cpliveapi->uapi(
    'Mime', 'delete_handler',
    {
        'extension'    => '.foo',
    }
);



<!-- Delete handler from ".foo" -->
[% data = execute( 'Mime', 'delete_handler', {'extension'=> '.foo'} ); %]



uapi --user=username Mime delete_handler extension=.foo



{
  "messages": [
    "Htaccess Installed"
  ],
  "errors": null,
  "status": 1,
  "data": null
}



Parameters

ParameterTypeDescriptionPossible valuesExample
extensionstring

Required

The file extension.

A valid file extension..foo

Returns

This function only returns metadata.