Only delete assigned components.

Fixes #31.