API
Version 7.x > API > Can't Delete a TreeNode in C# View modes: 
User avatar
Member
Member
sreejith - 7/25/2013 2:01:28 AM
   
Can't Delete a TreeNode in C#
Hi,

I'm using Kentico version 6, I have coded to delete a nodefrom CMS. It is working in my local development site but not in production site.

I have tried both:

DocumentHelper.DeleteDocument(treeNode, provider, true, true, true); and treeNode.Delete();

Please tell me is there any settings to change or how can we delete a node by Query?

User avatar
Kentico Support
Kentico Support
kentico_radekm - 7/25/2013 2:04:52 AM
   
RE:Can't Delete a TreeNode in C#
Hello.

Do you get any particular error message when you execute your code? Did you try to debug it to see if the code is executed and what line it fails on? The following API works for Kentico CMS 6.0: http://devnet.kentico.com/docs/6_0/devguide/documents_api_examples_deleting_documents.htm

Best Regards,
Radek Macalik

User avatar
Member
Member
sreejith - 7/25/2013 2:05:43 AM
   
RE:Can't Delete a TreeNode in C#
PLEASE IGNORE THIS I WILL MOVE THIS TO VERSION 7