remove dirs for the passed event