use internal rm command for removing directory with some contents