parameters: (self, force=False, rerecord=False)
return_statement: return res
docstring: Program.delete(force=False, rerecord=False) -> retcode
                  Informs backend to delete recording and all relevent data.
                  'force' forces a delete if the file cannot be found.
                  'rerecord' sets the file as recordable in oldrecorded
docstring_summary: Program.delete(force=False, rerecord=False) -> retcode
                  Informs backend to delete recording and all relevent data.
                  'force' forces a delete if the file cannot be found.
                  'rerecord' sets the file as recordable in oldrecorded
docstring_tokens: Program . delete ( force = False rerecord = False ) - > retcode Informs backend to delete recording and all relevent data . force forces a delete if the file cannot be found . rerecord sets the file as recordable in oldrecorded
function: def delete(self, force=False, rerecord=False):
          """
          Program.delete(force=False, rerecord=False) -> retcode
                  Informs backend to delete recording and all relevent data.
                  'force' forces a delete if the file cannot be found.
                  'rerecord' sets the file as recordable in oldrecorded
          """
          be = FileOps(db=self._db)
          res = int(be.deleteRecording(self, force=force))
          if res < -1:
              raise MythBEError('Failed to delete file')
          if rerecord:
              be.forgetRecording(self)
          return res
function_tokens: def delete ( self , force = False , rerecord = False ) : be = FileOps ( db = self . _db ) res = int ( be . deleteRecording ( self , force = force ) ) if res < - 1 : raise MythBEError ( 'Failed to delete file' ) if rerecord : be . forgetRecording ( self ) return res