code: def _remove_code(site):
      
      def handle_error(function, path, excinfo):
          click.secho('Failed to remove path ({em}): {p}'.format(em=excinfo.message, p=path), err=True, fg='red')
  
      if os.path.exists(site.root):
          shutil.rmtree(site.root, onerror=handle_error)
docs: Delete project files
      @type   site:   Site