added support for remove directory.

Signed-off-by: Arthur Zamarin <arthurzam@gmail.com>