def DNSServiceRemoveRecord(sdRef, RecordRef, flags=0):
 _global_lock.acquire()
 try:
  _DNSServiceRemoveRecord(sdRef, RecordRef, flags)
 finally:
  _global_lock.release()
 RecordRef._invalidate()

def DNSServiceRemoveRecord ( sdRef , RecordRef , flags = 0 ) : _global_lock . acquire ( ) try : _DNSServiceRemoveRecord ( sdRef , RecordRef , flags ) finally : _global_lock . release ( ) RecordRef . _invalidate ( )
remove a record previously added to a service record set via dnsserviceaddrecord() .