Skip to content

Commit 84aeaee

Browse files
committed
infra: add mention of removing crates
1 parent a35577e commit 84aeaee

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/infra/docs/docs-rs.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,19 @@ HH:MM:SS` back in the queue:
8080
UPDATE queue SET attempt = 0 WHERE attempt >= 5 AND build_time > 'YYYY-MM-DD HH:MM:SS';
8181
```
8282

83+
### Removing a crate from the website
84+
85+
Sometimes it might be needed to remove all the content related to a crate from
86+
docs.rs (for example after receiving a DMCA). To do that, log into the server
87+
and run:
88+
89+
```
90+
cratesfyi database delete-crate CRATE_NAME
91+
```
92+
93+
The command will remove all the data from the database, and then remove the
94+
files from S3.
95+
8396
[repo]: https://github.com/rust-lang/docs.rs
8497
[grafana-instance]: https://grafana.rust-lang.org/d/rpXrFfKWz/instance-metrics?orgId=1&var-instance=docsrs.infra.rust-lang.org:9100
8598
[grafana-app]: https://grafana.rust-lang.org/d/-wWFg2cZz/docs-rs?orgId=1

0 commit comments

Comments
 (0)