delete functionality added
parameter for recursive delete added