|
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 |
0 commit comments