def image_property_delete(context, prop_ref, image_ref, session=None):
 session = (session or get_session())
 prop = session.query(models.ImageProperty).filter_by(image_id=image_ref, name=prop_ref).one()
 prop.delete(session=session)
 return prop

def image_property_delete ( context , prop_ref , image_ref , session = None ) : session = ( session or get_session ( ) ) prop = session . query ( models . ImageProperty ) . filter_by ( image_id = image_ref , name = prop_ref ) . one ( ) prop . delete ( session = session ) return prop
used internally by image_property_create and image_property_update .