# Documenter.jl - Removing unwanted versions of generated documentation in 2024

**URL:** <https://discourse.julialang.org/t/documenter-jl-removing-unwanted-versions-of-generated-documentation-in-2024/123690>\
**Category:** General Usage\
**Tags:** question, documenter, github\
**Created:** [December 11, 2024, 7:26am UTC](https://discourse.julialang.org/t/documenter-jl-removing-unwanted-versions-of-generated-documentation-in-2024/123690 "2024-12-11T07:26:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![g-gundam](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/g-gundam/32/47593_2.png) [@g-gundam](https://discourse.julialang.org/u/g-gundam)\
**Post date:** [December 11, 2024, 7:26am UTC](https://discourse.julialang.org/t/documenter-jl-removing-unwanted-versions-of-generated-documentation-in-2024/123690/1 "2024-12-11T07:26:19Z")

</div>

## Backstory

I made a tagging mistake that I unwisely pushed up anyway, and now there’s documentation for a non-existent version of my (unregistered) library.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/c/2/c230dde54c8f0c1875702ff82c0de5ac5892c679.png)

- [Home · TechnicalIndicatorCharts.jl](https://g-gundam.github.io/TechnicalIndicatorCharts.jl/dev/)

There is no v1.2, and I’m thinking of getting rid of v1.0 too, because I’m thinking of doing the initial registration at v0.9.0, because there’s quite a bit of unfinished work.

## How do I get rid of the unwanted versions?

I found a [similar thread](https://discourse.julialang.org/t/removing-versions-from-documenter-jl-generated-documentation/10579) to this one from 2018, but its advice no longer seems valid. It says to edit `versions.jl` in the `gh-pages` branch, but there’s only `versions.js` and its contents look like this:

```javascript
var DOC_VERSIONS = [
  "dev",
];
var DOCUMENTER_NEWEST = "dev";
var DOCUMENTER_STABLE = "dev";

```

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [December 11, 2024, 8:45am UTC](https://discourse.julialang.org/t/documenter-jl-removing-unwanted-versions-of-generated-documentation-in-2024/123690/2 "2024-12-11T08:45:01Z")

</div>

I think the old thread is still accurate – `versions.js` vs `versions.jl` is probably a typo.

Minimal steps:

- Delete the folder for the bad version on the `gh-pages` branch ([this folder](https://github.com/g-gundam/TechnicalIndicatorCharts.jl/tree/gh-pages/v1.2) in your case).
- Rerun a documentation build job (e.g. just restart the latest build from the main branch). This will update the symlinks for `stable` and `v1` and regenerate the `versions.js` file.

---

<div class="post-metadata">

**Author:** ![g-gundam](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/g-gundam/32/47593_2.png) [@g-gundam](https://discourse.julialang.org/u/g-gundam)\
**Post date:** [December 11, 2024, 8:51am UTC](https://discourse.julialang.org/t/documenter-jl-removing-unwanted-versions-of-generated-documentation-in-2024/123690/3 "2024-12-11T08:51:14Z")

</div>

You know what else I forgot to do? I forgot to pull down all the changes the github-actions had been making. After a `git pull`, versions.js looks like:

```javascript
var DOC_VERSIONS = [
  "stable",
  "v1.2",
  "v1.0",
  "dev",
];
var DOCUMENTER_NEWEST = "v1.2";
var DOCUMENTER_STABLE = "stable";

```

I’m going to try your advice out right now and hope for the best.

#### Update: It worked.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/9/b/9b306d396ce7ec83487876c3d35bc1d6de695f3a.png)

Thanks, @fredrikekre.
