`xmodule.modulestore.__init__.ModuleStoreWrite.delete_course` says what you want and this inherits from it.