Added delete functionality and exclude patterns