'Remove the file in the webroot.
PLEASE NOTE: This is duplicated code!! see the same note below.'

def _rm_file(self, url_to_include):

    if (not self._use_XSS_vuln):
        filename = url_to_include.split('/')[(-1):][0]
        os.remove(os.path.join(get_home_dir(), 'webroot', filename))
