title: How to delete externally dropped events from fullcalendar?
body: <p>I have been trying to make it so I can drag events from fullcalendar to the trash, and the code I have works great for events that are rendered when the calendar is initialized, but it doesn't seem to work with events that have been dropped onto the calendar from external events.</p>
  
  <p>When I drag an external event onto the calendar, then try to drag them to the trash, it deletes all events.</p>
  
  <p>I have seen a couple posts like <a href="https://stackoverflow.com/questions/40475149/fullcalendar-remove-external-event-by-id">this</a> that say to use the _id attribute, but when I do that, nothing is deleted.</p>
  
  <p>Here is the code I'm using:</p>
  
  <pre><code>eventDragStop: function (event, jsEvent) {
  
      var trashEl = jQuery('#trashCan');
      var ofs = trashEl.offset();
  
      var x1 = ofs.left;
      var x2 = ofs.left + trashEl.outerWidth(true);
      var y1 = ofs.top;
      var y2 = ofs.top + trashEl.outerHeight(true);
  
      if (jsEvent.pageX &gt;= x1 &amp;&amp; jsEvent.pageX &lt;= x2 &amp;&amp;
          jsEvent.pageY &gt;= y1 &amp;&amp; jsEvent.pageY &lt;= y2) {
          console.log(event);
          $('#calendar').fullCalendar('removeEvents', event._id);
      }
  },
  </code></pre>
  
  <p>passing event.id works, but event._id, as I have it here, does nothing.</p>
  
  <p><strong>EDIT:</strong>
  To clarify things a bit, I decided I should leave all the relevant code.</p>
  
  <p>This is how I have my external events.  The first one is directly copied from a fullcalendar instance I've had working for about a year.:</p>
  
  <pre><code>&lt;div id="external-events" class="dropdown col-lg-3"&gt;
      &lt;button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
              data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"&gt;
          Unscheduled Events
          &lt;span class="caret"&gt;&lt;/span&gt;
      &lt;/button&gt;
      &lt;ul class="dropdown-menu" aria-labelledby="dropdownMenu1"&gt;
          &lt;li class="dropdown-header"&gt;Drag events to calendar&lt;/li&gt;
          &lt;li class="divider"&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#" data-duration="01:00" data-event='{"id": "803", "title": "Jennifer Ramundo"}' class='menu-event'&gt;My Event 1&lt;/a&gt;&lt;/li&gt;
          &lt;li class="divider"&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#" data-event="{'id': '2'}" class='menu-event'&gt;My Event 2&lt;/a&gt;&lt;/li&gt;
          &lt;li class="divider"&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#" data-event="{'id': '3'}" class='menu-event'&gt;My Event 3&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is how I initialize the external events:</p>
  
  <pre><code>$('#external-events .menu-event').each(function () {
  
      // store data so the calendar knows to render an event upon drop
      $(this).data('event', {
          title: $.trim($(this).text()), // use the element's text as the event title
          stick: true // maintain when user navigates (see docs on the renderEvent method)
      });
  
      // make the event draggable using jQuery UI
      $(this).draggable({
          zIndex: 999,
          revert: true,      // will cause the event to go back to its
          revertDuration: 0  //  original position after the drag
      });
  });
  </code></pre>
  
  <p>And here is my drop function:</p>
  
  <pre><code>drop: function (date, jsEvent, ui, resourceId) {
      console.log('drop', date.format(), resourceId);
      $(this).parent().next().remove();
      $(this).remove();
      if ($('#external-events').find('.menu-event').length === 0) {
          $('#external-events').hide();
      }
  },
  </code></pre>