title: How to destroy totally RXjS Objects in Angular
body: <p>I've angular(4) application and I'm using <code>EventEmitter</code>'s for some events.</p>
  
  <p>So, each <code>eventEmitter</code> has about ~ 50 subscriptions. And I want to know the way for quick destroy all of them.</p>
  
  <p>1) I know the way when we will push each Observable/Subject object to the array, but it's really dirty way. We have a lot of ugly code in our application and my eyes are pouring blood when I see it.</p>
  
  <p>2) I know another way when we can use <code>.takeUntil</code> or <code>.takeWhile</code> but it isn't solution! (Correct me if I'm wrong) Because subscribers will not respond to events, but Observer will have subscribers. (If you remember it's about ~ 50 for each observer). And subscribers will remain in memory. I'm not sure, but seems that GC can't destroy those objects. And It's really bad!</p>
  
  <p>So, as I understand - we should use <code>.unsubscribe</code> or <code>.complete</code> for kill observers with subscribers. And.... how we can do it? Do you now beautiful way except arrays?</p>
  
  <p>P.S. I also had thoughts regarding TS decorators for collect objects for destroy, but I haven't got success result...</p>