budget/src/main/java/budget/backend/stores/TagStore.java
@Override
  public iTag delete(String id) 
  {
    Tag t = null;
    try {
      dataChecker.verifyTagId(id);
      t = (Tag)map.remove(id);
      if (t != null){
        t.getParent().addDescendants(t.getDescendants());
        t.getParent().removeDescendant(t);
      }

    } catch (Exception e) {
      System.out.print(e.getMessage());
    }
    
    return t;
    
  }
/**
   * Delete a Tag from the structure, if it exsists. 
   * @param id
   */
Delete a Tag from the structure, if it exsists.
@param id
Delete a Tag from the structure if it exsists . @param id
@Override
  public iTag delete(String id) 
  {
    Tag t = null;
    try {
      dataChecker.verifyTagId(id);
      t = (Tag)map.remove(id);
      if (t != null){
        t.getParent().addDescendants(t.getDescendants());
        t.getParent().removeDescendant(t);
      }
    } catch (Exception e) {
      System.out.print(e.getMessage());
    }
    return t;
  }
@ Override public iTag delete ( String id ) { Tag t = null ; try { dataChecker . verifyTagId ( id ) ; t = ( Tag ) map . remove ( id ) ; if ( t != null ) { t . getParent ( ) . addDescendants ( t . getDescendants ( ) ) ; t . getParent ( ) . removeDescendant ( t ) ; } } catch ( Exception e ) { System . out . print ( e . getMessage ( ) ) ; } return t ; }
Delete a Tag from the structure, if it exsists.
Delete a Tag from the structure if it exsists .