delete method - deletes folder if empty