Implement plugin removal function

Signed-off-by: JWhy <jwhy@jwhy.de>
Added element comments and formatted source

Signed-off-by: JWhy <jwhy@jwhy.de>