# phpBB 3 Importer (old)

**URL:** <https://meta.discourse.org/t/phpbb-3-importer-old/17397>\
**Category:** Feature\
**Created:** [9 Luglio 2014, 6:57pm UTC](https://meta.discourse.org/t/phpbb-3-importer-old/17397 "2014-07-09T18:57:02Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)\
**Post date:** [2 Settembre 2014, 1:10am UTC](https://meta.discourse.org/t/phpbb-3-importer-old/17397/27 "2014-09-02T01:10:58Z")

</div>

Not automatically. But you can do this in the Rails console, **if** the converter script has set some custom field on imported posts. This should be the case for most current importer scripts.

```ruby
system_user = Discourse.system_user
PostCustomField.joins(:post).includes(:post).where(name: 'import_id').map {|pcf| pcf.post.topic_id }.sort.uniq.each do |topic_id|
  PostDestroyer.new(system_user, Topic.find(topic_id).ordered_posts.first).destroy
end

```

---

_[View the full topic](https://meta.discourse.org/t/phpbb-3-importer-old/17397)._
