In Verity on Windows, I've seen problems where a file gets locked by a
CF thread and then is never released. Therefore, it can't be deleted.
Rebooting the box fixes it for me, though there may be a less drastic
solution.
Once you've unlocked the file, you can delete the files manually (since
the registration should have been removed).
--Ben
Chris Berg wrote:
> Hello,
>
> I am having a problem deleting a collection via <cfcollection>. This
> collection was created by CF and is not external to it. It has an entry
> in the K2server.ini file for Verity K2, but when I go to run the delete,
> I get an error: Could not delete the contents of the collection
> directory [C:\KMS_Verity\KMS_VTC\VTC_UC\custom].
>
> I have no idea why. I am stopping the K2 Service first, but it still
> fails. Here is the code from my fbx_switch:
>
> <cfcase value="DeleteNow">
> <cfset attributes.K2FileAction = "Remove" />
> <cfset attributes.ScreenTitle = "Delete a Collection" />
> <cfset attributes.result_message = "The selected collection was
> deleted successfully.">
> <cfinclude template="act_AA_CollectionExists.cfm" />
> <cfinclude template="act_AA_DefineCollectionVars.cfm" />
> <cfinclude template="act_AA_K2Entry.cfm" />
> <cfset K2ServiceControl("stop")>
> <cfinclude template="act_AA_DeleteCollection.cfm" />
> <cfinclude template="dsp_AA_ActionResult.cfm" />
> </cfcase>
>
> The relevant entries would a act_AA_K2Entry.cfm, which removes the
> collection entries from K2server.ini, the K2ServiceControl function
> call, and the file act_AA_DeleteCollection.
>
> Any ideas as to why I cannot delete?
>
> TIA for any help.
>
> Chris
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

