Description

This function removes a MIME type from Apache.

Examples 




https://hostname.example.com:2083/cpsess##########/execute/Mime/delete_mime?type=text%2Ffoo



$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Remove MIME type of text/foo
$mime_delete_mime = $cpanel->uapi(
    'Mime', 'delete_mime',
    array(
        'type'       => 'text/foo',
 )
);



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
# Remove MIME type of text/foo
my $mime_delete_mime = $cpliveapi->uapi(
    'Mime', 'delete_mime',
    {
        'type'       => 'text/foo',
    }
);



<!--  Remove MIME type of text/foo -->
[% data = execute( 'Mime', 'delete_mime', {'type' => 'text/foo',} ); %]



uapi --user=username Mime delete_mime type=text%2Ffoo



{
  "messages": null,
  "errors": null,
  "status": 1,
  "data": null
}



Parameters

ParameterTypeDescriptionPossible valuesExample
typestring

Required

The MIME type.

A valid MIME type.

text/foo

Returns

This function only returns metadata.