I have created folders using PHP's mkdir command. 
Now I want to delete these folders over FTP or SSH.

I get the error "permission denied".
I am on a managed server so I do not have root access.

What can I do so I will be able to delete these folders? 
Do I need to change the file permissions (chmod) using PHP?