code: def delete_alias(i):
      
  
      rd=i.get('repo_dict',{})
      rshared=rd.get('shared','')
      rsync=rd.get('sync','')
  
      if i.get('share','')=='yes': rshared='git'
  
      p=i['path']
      alias=i.get('data_alias','')
      uid=''
  
      if alias!='' and os.path.isdir(p):
         p0=os.path.join(p, cfg['subdir_ck_ext'])
  
         p9=cfg['file_alias_a'] + alias
         p1=os.path.join(p0, p9)
  
         if rshared!='':
            ppp=os.getcwd()
            os.chdir(p0)
  
         if os.path.isfile(p1):
            try:
               f=open(p1)
               uid=f.readline().strip()
               f.close()
            except Exception as e:
               None
  
            if rshared!='':
               ss=cfg['repo_types'][rshared]['rm'].replace('$#files#$', p9)
               rx=os.system(ss)
  
            if os.path.isfile(p1): os.remove(p1)
  
         if uid=='': uid=i['data_uid']
  
         if uid!='':
            p9=cfg['file_alias_u'] + uid
            p1=os.path.join(p0, p9)
            if os.path.isfile(p1):
               if rshared!='':
                  ss=cfg['repo_types'][rshared]['rm'].replace('$#files#$', p9)
                  rx=os.system(ss)
  
               if os.path.isfile(p1): os.remove(p1)
  
         if rshared!='':
            os.chdir(ppp)
  
      return {'return':0}
docs: Input:  {
                path         - path to the entry
                data_uid     - data UID
                (data_alias) - data alias
                (repo_dict)  - repo cfg if available to check sync
                (share)      - if 'yes', try to rm via GIT
              }
  
      Output: {
                return       - return code =  0, if successful
                                           >  0, if error
                (error)      - error text if return > 0
              }