Added remove method when insecure package is present

Fixes #288