# 附件迁移到 S3

**URL:** https://meta.discourse.org/t/migrate-attachments-to-s3/203267
**Category:** Support
**Created:** [2021年九月11日 20:40 UTC](https://meta.discourse.org/t/migrate-attachments-to-s3/203267 "2021-09-11T20:40:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Timelord](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Timelord](https://meta.discourse.org/u/Timelord)
#### Post date: [2021年九月11日 20:40 UTC](https://meta.discourse.org/t/migrate-attachments-to-s3/203267/1 "2021-09-11T20:40:46Z")

</div>

各位下午好。

我服务器上的磁盘空间正变得非常紧张，因为我的网站依赖大量用户上传的内容（图片和视频片段）。我想将这些全部迁移到 S3，这看起来相当直接。

我真正想问的是，在图片迁移完成且帖子重新烘焙之后，该如何从服务器上删除这些图片/片段？是手动浏览目录并使用 rm 命令吗？

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [2021年九月11日 21:24 UTC](https://meta.discourse.org/t/migrate-attachments-to-s3/203267/2 "2021-09-11T21:24:21Z")

</div>

`./launcher cleanup `

应该就能解决问题了。
