'Deletes the sample course from the XML store'

def _rm_edx4edx(self):

    def_ms = modulestore()
    course_path = '{0}/edx4edx_lite'.format(os.path.abspath(settings.DATA_DIR))
    try:
        course = def_ms.courses.get(course_path, None)
    except AttributeError:
        course = def_ms.get_course(CourseKey.from_string('MITx/edx4edx/edx4edx'))
    response = self.client.post(reverse('sysadmin_courses'), {'course_id': course.id.to_deprecated_string(), 'action': 'del_course'})
    self.addCleanup(self._rm_glob, '{0}_deleted_*'.format(course_path))
    return response
