1

I want to remove Schema fields using a PowerShell script.

Any one have suggestion and solutions?

1
  • You want to remove a field from a schema, or from the components (or both?)
    – Nuno Linhares
    Apr 12, 2017 at 22:42

2 Answers 2

6

You can establish a Core Service connection from Powershell to the CM and then use the Core Service API to perform the desired action.

Just one question though, why do you need to remove schema fields from Powershell in the first place, for me it doesn't seem the most logical way/place to do it.

4
  • it`s business requirement remove the schema fields. specific fields no more use in future. Apr 12, 2017 at 22:37
  • 1
    Yeah, but any specific reason for choosing Powershell?
    – Atila Sos
    Apr 12, 2017 at 22:44
  • Indeed, why not do this in the GUI? How many schemas do you have? Apr 13, 2017 at 6:25
  • We have multiple teams and multiple release a month. we have nearly 300+ schemas. I dont want to revert other project changes in this schema. power-shell script just remove specific schema field without impact other fields and also best away. Apr 13, 2017 at 18:29
-2

schema fields remove not possible using shell script. I removed schema field in development and content porting in production environment.

1
  • 4
    You most certainly can do this via powershell, we just don't seem to understand why you'd want to do this..
    – Nuno Linhares
    Apr 14, 2017 at 20:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.