<p>I think you're looking for the <code>Delete</code> Duplication Handling option. From the <a href="https://github.com/engram-design/FeedMe#duplication-handling" rel="nofollow">documentation</a>:</p>

<blockquote>
  <p>Delete all existing entries in this section, adding only entries from
  this feed. Be careful. Use case: Events, or when only data from the
  current feed is required.</p>
  
  <p>"I want only the entries from this feed in this section."</p>
</blockquote>

CC BY-SA 3.0
2015-12-16T15:44:48.583Z
this will only delete entries that are recognized on both endpoint and in craft right? The issue is that if the endpoint doesn't contain an entry that is still in craft I need to delete that entry in craft.
mdxprograms
CC BY-SA 3.0
2015-12-17T07:28:28.153Z
Out of interest, have you actually tried this setting? Thats exactly what this does. It deletes _every_ entry in the section you're importing to, and _only_ imports the entries in your feed. Make sense?
crawf
CC BY-SA 3.0
2015-12-14T21:52:59.380Z
2015-12-14T21:52:59.380Z
crawf
<p>I am currently using FeedMe to import json data every night but I need to delete all entries before doing so to make sure that any orphaned entries are removed.</p>

<p>What is the best way to remove all entries within a section?</p>

CC BY-SA 3.0
2015-12-14T16:45:20.180Z
Can you not use the update setting for FeedMe, eg to check against a duplicate?
Cole Henley
CC BY-SA 3.0
2015-12-14T18:25:06.097Z
Update will only update and existing entry. There may be a record removed from the data I am receiving and I will need to somehow account for that and remove it within craft.
mdxprograms
<entries><deletion><plugin-feedme>
Is there a way to delete all entries within a section?
# Is there a way to delete all entries within a section?

(Asked by: username_0 on 2015-12-14)

I am currently using FeedMe to import json data every night but I need to delete all entries before doing so to make sure that any orphaned entries are removed.

What is the best way to remove all entries within a section?

**Tags:** entries, deletion, plugin-feedme

> **Comments:**
> **username_1**: Can you not use the update setting for FeedMe, eg to check against a duplicate?  
> **username_0**: Update will only update and existing entry. There may be a record removed from the data I am receiving and I will need to somehow account for that and remove it within craft.  

---

## 1 answers

### Answer by username_2 on 2015-12-14. Score: 1

I think you're looking for the `Delete` Duplication Handling option. From the [documentation](https://github.com/engram-design/FeedMe#duplication-handling):

> Delete all existing entries in this section, adding only entries from
> this feed. Be careful. Use case: Events, or when only data from the
> current feed is required.
>
> "I want only the entries from this feed in this section."

> **Comments:**
> **username_0**: this will only delete entries that are recognized on both endpoint and in craft right? The issue is that if the endpoint doesn't contain an entry that is still in craft I need to delete that entry in craft.  
> **username_2**: Out of interest, have you actually tried this setting? Thats exactly what this does. It deletes _every_ entry in the section you're importing to, and _only_ imports the entries in your feed. Make sense?  

---

