sp-dev-docs
sp-dev-docs copied to clipboard
Provision SharePoint assets from your SharePoint client-side web part
I am trying to provision SharePoint assets(list, site columns, content types) as part of my SPFx webpart deployment. After reviewing the documentation available at (https://learn.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/provision-sp-assets-from-package) I was able to create assets in SharePoint and add new columns(using upgrade actions) when I upgrade my SPFx.
However, is it possible to update/remove/delete existing things like columns and lists as part of the upgrade process. Is there any documentation available that can guide me on this?
Thanks
Originally posted by @akshataggrwal in https://github.com/SharePoint/sp-dev-docs/discussions/9508
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
You can use the <UpdateAction> element to control what happens when you go from one version of the Feature to another, but there's no way to remove/clean up existing things.
Generally speaking, SharePoint never deletes/cleans up after itself, instead deferring that work to the developer (so nothing is surprisingly removed).
Thank you for taking the time to file an issue. We periodically archive older or inactive issues as part of our issue management process, which automatically closes them once they are archived.
If you’d like to understand more about why and how we handle archived (closed) issues, please see Our approach to closed issues.
We appreciate your contribution and if this is still an active issue with the latest SPFx versions, please do resubmit the details. We needed to perform a cleanup, so that we can start with a clean table with a new process. We apologize for the inconvenience this might cause.