protected function removeScriptFile() { $scriptFilePath = $this->getPluginUpdatesPath($this->scriptFileName . '.php'); // Using unlink instead of File::remove() is safer here. @unlink($scriptFilePath); }