code: def doDelete(self, WHAT={}):
  		
  
  		if hasattr(WHAT, '_modified'):
  			self._addDBParam('RECORDID', WHAT.RECORDID)
  			self._addDBParam('MODID', WHAT.MODID)
  		elif type(WHAT) == dict and WHAT.has_key('RECORDID'):
  			self._addDBParam('RECORDID', WHAT['RECORDID'])
  		else:
  			raise FMError, 'Python Runtime: Object type (%s) given to function doDelete as argument WHAT cannot be used.' % type(WHAT)
  
  		if self._layout == '':
  			raise FMError, 'No layout was selected'
  
  		if self._checkRecordID() == 0:
  			raise FMError, 'RecordID is missing'
  
  		return self._doAction('-delete')
docs: This function will perform the command -delete.