Remove a Form from InfoPath Form Services

Scenario/Problem: You need to remove a form from InfoPath Form Services.

Solution: Use the Uninstall-SPInfoPathFormTemplate PowerShell cmdlet.

Removing a form deletes it from InfoPath Forms Services. It is no longer available on any site collection. To remove a form from InfoPath Form Services, use the following cmdlet:

Uninstall-SPInfoPathFormTemplate -Identity "<<name of form template>>"

Tip

Removing a form does not always remove the content type it generates. Make sure the form is not being used anywhere in SharePoint. Otherwise, errors will occur when SharePoint tries to access the form template via the content type. (Hint: Remove the content type first because SharePoint will notify if it is ...

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.