Description

This function removes an Apache MIME type handler from a file extension.

Examples 


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$del_handler = $cpanel->api1('Mime', 'del_handler', array('.txt') ); // Call the function.

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $del_handler = $cpliveapi->api1('Mime', 'del_handler', ['.txt'] ); # Call the function.

 

<cpanel Module="Mime::del_handler( $FORM('ext'))">
cpapi1 --user=username Mime del_handler .txt

This function does not return output.

Parameters

ParameterTypeDescriptionPossible ValuesExample
exts
string

Required

The file extension.

Any valid file extension.
.txt

Returns

This function does not return output.