code: def uninstall(hook_type='pre-commit'):
      
      hook_path, legacy_path = _hook_paths(hook_type)
  
      # If our file doesn't exist or it isn't ours, gtfo.
      if not os.path.exists(hook_path) or not is_our_script(hook_path):
          return 0
  
      os.remove(hook_path)
      output.write_line('{} uninstalled'.format(hook_type))
  
      if os.path.exists(legacy_path):
          os.rename(legacy_path, hook_path)
          output.write_line('Restored previous hooks to {}'.format(hook_path))
  
      return 0
docs: Uninstall the pre-commit hooks.