BUGFIX: use plugin system erase code