code: def delete(package):
      
      team, owner, pkg = parse_package(package)
  
      answer = input(
          "Are you sure you want to delete this package and its entire history? "
          "Type '%s' to confirm: " % package
      )
  
      if answer != package:
          print("Not deleting.")
          return 1
  
      session = _get_session(team)
  
      session.delete("%s/api/package/%s/%s/" % (get_registry_url(team), owner, pkg))
      print("Deleted.")
docs: Delete a package from the server.
  
      Irreversibly deletes the package along with its history, tags, versions, etc.