Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sharepoint: Is there some OOB way to delete provision files?

Tags:

sharepoint

I'm using OOB functionality to upload files to sharepoint. I'm using <module> tags and feature which wraps all data. (it is described here)

Here is example of module in my elements.xml file:

<Module Name="SampleImages" Url="Style Library/Images/SampleImages" Path="Images" RootWebOnly="TRUE">
    <File IgnoreIfAlreadyExists="TRUE" Name="example.jpg" Url ="example.jpg" Type="GhostableInLibrary" />
</Module>   

The only problem is that when I deactivate feature uploaded files are not removed. Currently I use feature receiver which removes theese files, since I wasn't able to find any other solution.

So do I miss something or this is the only way how I can get rid of files uploaded in this manner?

like image 884
Marian Polacek Avatar asked Jan 26 '26 02:01

Marian Polacek


1 Answers

I believe the way you are doing it is the only way.

like image 53
savageguy Avatar answered Jan 27 '26 16:01

savageguy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!