remove folder function. It doesn't seem to be used.

@maethu