old_contents: from ..models import  *
  import bcrypt
  
  def deletePreviousRank(password):
      try:
          apiPass = ApiPassword.objects.get(apiName = 'deletePreviousRank')
      except:
          return "404-1"
  
      if bcrypt.checkpw(str(password), str(apiPass)):
          try:
              rankingObj = rankingSet.objects.all()
              if (rankingObj.count()>0):
                  rankingObj.delete()
              return '202-1'
          except Exception as e:
              return '404-2'
      else:
          return "409-1"
  
new_contents: from ..models import  *
  import bcrypt
  
  def deletePreviousRank(password):
      try:
          apiPass = ApiPassword.objects.get(apiName = 'deletePreviousRank')
      except:
          return "404-1"
  
      if bcrypt.checkpw(str(password), str(apiPass.apiPassword)):
          try:
              rankingObj = rankingSet.objects.all()
              if (rankingObj.count()>0):
                  rankingObj.delete()
              return '202-1'
          except Exception as e:
              return '404-2'
      else:
          return "409-1"
  
subject: fix -2 invalid salt