IRPCPropertyDefsAdmin.RemovePropertyDef

View as Markdown

Administration API / specialized admin session

Deletes a property definition and its values from all objects, or only counts the values that would be removed.

ServiceProperty definition and class administration MFiles.IRPCPropertyDefsAdmin
gRPC method/MFiles.IRPCPropertyDefsAdmin/RemovePropertyDef
HTTP (mf-http-grpc)POST /grpc/v1/remove-property-def
RequestRemovePropertyDefRequest
ResponseRemovePropertyDefResponse
Book and levelAdministration API, specialized
Kindadmin
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentno
Returns metadata structure versionno
Streamingnone (unary)

Remarks

Request: RemovePropertyDefRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
property_defint32The ID of the PropertyDef to remove.
copy_to_another_property_defboolTrue to move the values to target_property_def before deleting.
target_property_defint32The property definition that receives the values. Used only when copy_to_another_property_def is true.
appendboolTrue to add the moved values to the target's existing values, false to overwrite them.
delete_from_classes_if_necessaryboolTrue to remove the property definition from the classes that use it; false to fail if any class uses it.
check_effects_onlyboolTrue if the server should only check the effects of these changes to existing documents and not apply the changes yet.

Response: RemovePropertyDefResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
null_valuesuint32With check_effects_only, the number of empty values that would be removed.
non_null_valuesuint32With check_effects_only, the number of non-empty values that would be removed.