How to sunset a section of content
This article describes the process for retiring entire sections of MDN Web Docs content, known as sunsetting. Sunsetting is different from deleting or moving individual pages; it applies when a whole section is no longer actively maintained, relevant, or aligned with MDN's goals and needs to be retired in a planned and transparent way. Sunsetted content is not permanently deleted — it is always archived in the MDN Museum repository.
Sunsetting is a very rare occurrence, and the process will differ depending on the circumstances. This guide provides an overview of when and how to sunset a section, and the steps to follow to do so responsibly.
When to consider sunsetting content
You may want to propose sunsetting a section of MDN Web Docs content if any of the following apply:
- The technology is deprecated or no longer relevant to the web platform.
- The section duplicates information better maintained elsewhere (such as an official documentation site for a framework).
- The section does not align with MDN's content strategy.
- The maintenance cost outweighs the value to users, as indicated by usage data and user feedback.
Sunsetting should always be a deliberate, visible process. Large-scale removals should never happen without discussion or notice. The final decision to sunset a section lies with the MDN team.
Note: If you want to remove individual pages rather than an entire section, consult our Deleting pages guide. For guidance on labeling individual features as deprecated, see How to label a technology.
The sunsetting process
Sunsetting a section of MDN Web Docs content involves two phases: reaching an agreement and then removing the content.
Phase 1: Decision process
Sunsetting must be agreed upon by the MDN team and partners. Discussion may happen in our communication channels, via a GitHub discussion, and/or in our editorial calls (held every two weeks).
If a section is seriously being considered for sunsetting, a GitHub discussion must be opened to capture the decision and process. The discussion should be clear about:
- The reasoning for removal.
- The impact of the removal.
- Relevant stakeholders are aware and have been consulted.
- Alternative approaches have been considered.
In some cases, the decision may also involve gathering feedback from MDN users. This can include:
- Running a user survey.
- Asking for feedback via GitHub or other MDN communication channels.
The goal is to confirm that the section is no longer meeting user needs and that there is no clear path to its sustainable maintenance.
If an agreement to sunset a section is reached, a timeline should be set — typically between 3 and 6 months. The reasons and timeline should be recorded in the GitHub discussion. It should be clear in the discussion that the content will be archived, not permanently deleted.
If a decision is reached not to sunset, this should be communicated along with reasons via the original communication channel.
Phase 2: Removing content
Once agreement has been reached, follow these steps to remove the content.
Add a sunsetting notice banner
Add a note banner to the top of every article in the section being sunset. The banner should clearly state:
- That the section is being removed from the website.
- The expected removal timeframe and date.
- That the content will be archived.
- A link to the GitHub discussion for more details.
Use the following template:
> [!NOTE]
> This section of MDN is no longer being maintained and will be removed from the website in 6 months (by MONTH YEAR). The content will be archived in the [MDN Museum](https://github.com/mdn/museum). See [this discussion](LINK) for further information.
This notice ensures transparency and gives users time to adjust.
Archive and remove the content
After the agreed-upon sunsetting period has passed, the content can be removed from MDN Web Docs as follows:
-
Archive the content. Copy the section to the MDN Museum repository for archival purposes. Keep the content in a directory that matches the original URL path. For example, content at
https://developer.mozilla.org/en-US/docs/Gameswould go in a/docs/games/directory in the museum repository. This preserves MDN's content history while keeping deprecated material off the active site. -
Remove the content and add redirects. Use the
deletecommand to remove the pages and set up redirects. Redirects should point users to the most relevant alternative content if available. If there is no suitable alternative, redirect to the MDN Web Docs homepage.
Warning: Do not permanently delete content without archiving it first.