@log_call
def metadef_namespace_delete_content(context, namespace_name):
 global DATA
 namespace = metadef_namespace_get(context, namespace_name)
 namespace_id = namespace['id']
 objects = []
 for object in DATA['metadef_objects']:
  if (object['namespace_id'] != namespace_id):
   objects.append(object)
 DATA['metadef_objects'] = objects
 properties = []
 for property in DATA['metadef_objects']:
  if (property['namespace_id'] != namespace_id):
   properties.append(object)
 DATA['metadef_objects'] = properties
 return namespace

@ log_call def metadef_namespace_delete_content ( context , namespace_name ) : global DATA namespace = metadef_namespace_get ( context , namespace_name ) namespace_id = namespace [ 'id' ] objects = [ ] for object in DATA [ 'metadef_objects' ] : if ( object [ 'namespace_id' ] != namespace_id ) : objects . append ( object ) DATA [ 'metadef_objects' ] = objects properties = [ ] for property in DATA [ 'metadef_objects' ] : if ( property [ 'namespace_id' ] != namespace_id ) : properties . append ( object ) DATA [ 'metadef_objects' ] = properties return namespace
delete a namespace content .