# Problem with Documenter Clean Up

**URL:** <https://discourse.julialang.org/t/problem-with-documenter-clean-up/73946>\
**Category:** General Usage\
**Tags:** documenter\
**Created:** [January 2, 2022, 11:21pm UTC](https://discourse.julialang.org/t/problem-with-documenter-clean-up/73946 "2022-01-02T23:21:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcobonici](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marcobonici/32/20549_2.png) [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Post date:** [January 2, 2022, 11:21pm UTC](https://discourse.julialang.org/t/problem-with-documenter-clean-up/73946/1 "2022-01-02T23:21:11Z")

</div>

I am not able to use the Doc Preview Cleanup, as explained [here](https://juliadocs.github.io/Documenter.jl/stable/man/hosting/#gh-pages-Branch).

Using the very same workflow they have described, I obtain the following error message

```julia
  git config user.name "Documenter.jl"
  git config user.email "documenter@juliadocs.github.io"
  git rm -rf "previews/PR$PRNUM"
  git commit -m "delete preview"
  git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree})
  shell: /usr/bin/bash -e {0}
  env:
    PRNUM: 105
fatal: pathspec 'previews/PR105' did not match any files
Error: Process completed with exit code 128.

```

Thank you for your help,  
Marco Bonici
