Description

This function removes a user's access to a password-protected directory.

Examples 




$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$delete_user = $cpanel->api1('Htaccess','del_user', array('protectedfolder','user') ); // Call the function.



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $delete_user = $cpliveapi->api1('Htaccess','del_user', ['protectedfolder','user'] ); # Call the function.

 


<cpanel Module="Htaccess::del_user( $FORM('dir','user') )">




cpapi1 --user=username Htaccess del_user protectedfolder user


This function does not return output.



Parameters

ParameterTypeDescriptionPossible valuesExample

dir

string

Required

The directory name.

A valid directory name.protectedfolder
userstring

Required

The username.

A valid username.user

Returns

This function does not return output.