null check for delete plugin method