Description
This function removes a MIME type from Apache.
Examples
cPanel or Webmail Session URL
https://hostname.example.com:2083/cpsess##########/execute/Mime/delete_mime?type=text%2Ffoo
LiveAPI PHP Class
$cpanel
=
new
CPANEL();
$mime_delete_mime
=
$cpanel
->uapi(
'Mime'
,
'delete_mime'
,
array
(
'type'
=>
'text/foo'
,
)
);
LiveAPI Perl Module
my
$cpliveapi
= Cpanel::LiveAPI->new();
my
$mime_delete_mime
=
$cpliveapi
->uapi(
'Mime'
,
'delete_mime'
,
{
'type'
=>
'text/foo'
,
}
);
cPanel Template Toolkit
[% data = execute( 'Mime', 'delete_mime', {'type' => 'text/foo',} ); %]
Command Line
uapi --user=username Mime delete_mime type=text%2Ffoo
|
Output (JSON)
{
"messages": null,
"errors": null,
"status": 1,
"data": null
}
Parameters
Parameter
|
Type
|
Description
|
Possible values
|
Example
|
type
|
string
|
Required
The MIME type.
|
A valid MIME type.
|
text/foo
|
Returns
This function only returns metadata.