Description
This function removes an Apache MIME type handler from an account's .htaccess
file.
Examples
LiveAPI PHP Class
$cpanel
=
new
CPANEL();
$del_mime
=
$cpanel
->api1(
'Mime'
,
'del_mime'
,
array
(
'text/plain'
) );
LiveAPI Perl Module
my
$cpliveapi
= Cpanel::LiveAPI->new();
my
$del_mime
=
$cpliveapi
->api1(
'Mime'
,
'del_mime'
, [
'text/plain'
] );
cPanel Tag System (deprecated)
Warning:
In cPanel & WHM version 11.30 and later, cPanel tags are deprecated. This example is present in order to help developers move from the old cPanel tag system to our LiveAPI.
We strongly recommend that you only use the LiveAPI system to call the cPanel APIs.
<cpanel Module="Mime::del_mime( $FORM('type') )">
|
Command Line
cpapi1 --user=username Mime del_mime type =text /plain
|
Output (none)
This function does not return output.
Parameters
Parameter
|
Type
|
Description
|
Possible Values
|
Example
|
type
|
string
|
Required
The MIME type.
|
Any valid MIME type.
|
text/plain
|
Returns
This function does not return output.