Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff61a11

Browse files
committed
Move crates.io removal instructions to crates.io ops guide
Merge docs.rs instructions into the docs.rs page.
1 parent 5b54a8f commit ff61a11

File tree

2 files changed

+12
-51
lines changed

2 files changed

+12
-51
lines changed

src/crates-io/crate-removal.md

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +0,0 @@
1-
# Crate removal procedure
2-
3-
If we get a DMCA takedown notice, here's what needs to happen:
4-
5-
## Contact Legal
6-
7-
Before removing the crates, get in touch with legal support, currently by
8-
emailing the Core team, and ask an opinion from them on the received request and
9-
whether we have to comply with it.
10-
11-
## Remove relevant version(s) and/or entire crates from crates.io
12-
13-
* Remove it from the database:
14-
15-
heroku run -a crates-io -- target/release/crates-admin delete-crate [crate-name]
16-
17-
or
18-
19-
heroku run -a crates-io -- target/release/crates-admin delete-version [crate-name] [version-number]
20-
21-
* Remove the crate or version from the index. To remove an entire crate, remove
22-
the entire crate file. For a version, remove the line corresponding to the
23-
relevant version.
24-
25-
* Remove the crate archive(s) and readme file(s) from S3.
26-
27-
* Invalidate the CloudFront cache:
28-
29-
```
30-
aws cloudfront create-invalidation --distribution-id EJED5RT0WA7HA --paths '/*'
31-
```
32-
33-
## Remove entire crates from docs.rs
34-
35-
The docs.rs application supports deleting all the documentation ever published
36-
of a crate, by running a CLI command. The people who currently have permissions
37-
to access the server and run it are:
38-
39-
* docs.rs Team:
40-
* [@pietroalbini](https://github.com/pietroalbini)
41-
* [@jyn514](https://github.com/jyn514)
42-
* Infrastructure Team:
43-
* [@Mark-Simulacrum](https://github.com/Mark-Simulacrum)
44-
* People with elevated 1password access
45-
46-
You can find the documentation on how to run the command [here][docsrs-howto].
47-
48-
[docsrs-howto]: https://forge.rust-lang.org/infra/docs/docs-rs.html#removing-a-crate-from-the-website

src/docs-rs/maintenance.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,18 @@ UPDATE queue SET attempt = 0 WHERE attempt >= 5 AND build_time > 'YYYY-MM-DD HH:
122122

123123
## Removing a crate from the website
124124

125-
Sometimes it might be needed to remove all the content related to a crate from
126-
docs.rs (for example after receiving a DMCA). To do that, log into the server
127-
and run:
125+
The docs.rs application supports deleting all the documentation ever published
126+
of a crate (for example after receiving a DMCA), by running a CLI command. The
127+
people who currently have permissions to access the server and run it are:
128+
129+
* docs.rs Team:
130+
* [@pietroalbini](https://github.com/pietroalbini)
131+
* [@jyn514](https://github.com/jyn514)
132+
* Infrastructure Team:
133+
* [@Mark-Simulacrum](https://github.com/Mark-Simulacrum)
134+
* People with elevated 1password access
135+
136+
If you are one of these people, log into the server and run:
128137

129138
```
130139
cratesfyi database delete-crate CRATE_NAME

0 commit comments

Comments
 (0)