# 新しいインポートスクリプト作成中のデータベースクリーンアップ

**URL:** <https://meta.discourse.org/t/database-cleanup-while-writing-a-new-import-script/94134>\
**Category:** Development\
**Created:** [2018 年 8 月 7 日午後 4:59 UTC](https://meta.discourse.org/t/database-cleanup-while-writing-a-new-import-script/94134 "2018-08-07T16:59:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [2018 年 8 月 7 日午後 6:02 UTC](https://meta.discourse.org/t/database-cleanup-while-writing-a-new-import-script/94134/2 "2018-08-07T18:02:46Z")

</div>

I’m executing the following commands whenever I want to rebuild my development instance.

```plaintext
cd ~/Repositories/discourse

rm -R public/upload/*
rm -R tmp/*
rm -R log/*

redis-cli flushall
bundle exec rake db:drop db:create db:migrate

```

---

_[View the full topic](https://meta.discourse.org/t/database-cleanup-while-writing-a-new-import-script/94134)._
