public void deleteAttachment(AttachmentPK primaryKey) throws AttachmentException {
    Connection con = getConnection();
    try {
      AttachmentI18NDAO.removeTranslations(con, primaryKey);

      dao.deleteAttachment(con, primaryKey);
    } catch (SQLException se) {
      throw new AttachmentException(
          "AttachmentBmImpl.createAttachment()",
          SilverpeasException.ERROR,
          "attachment_MSG_NOT_DELETE_FILE",
          se);
    } finally {
      closeConnection(con);
    }
  }