<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delete_text(self, 	 text, 	 fname, 	 pattern=None, 	 expect=None, 	 shutit_pexpect_child=None, 	 note=None, 	 before=False, 	 force=False, 	 line_oriented=True, 	 loglevel=logging.DEBUG):
 		"""Delete a chunk of text from a file. 		See insert_text. 		"""

		shutit_global.shutit_global_object.yield_to_draw()
		return self.change_text(text,
		                        fname,
		                        pattern,
		                        expect,
		                        shutit_pexpect_child,
		                        before,
		                        force,
		                        note=note,
		                        delete=True,
		                        line_oriented=line_oriented,
		                        loglevel=loglevel)