added attachment deletion