Script to delete a product and all references

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Script to delete a product and all references

lhp001
Hi,

I have to delete some product features and variants I added before i do a demo.  I customized an E-Commerce site and I don't have the luxury of spending time to write a script to delete all child foreign key dependencies.  Webtools is not allowing me to do the deletes due to so many dependencies.  The data I want to delete is not even part of an order; its just in the Catalog's product.

Thanks!  
Reply | Threaded
Open this post in threaded view
|

Re: Script to delete a product and all references

Alex D. Fleming-2
Hey Buddy,

>> I don't have the luxury of
>> spending time to write a script to delete all child foreign key
>>dependencies

If you don't have luxury of spending time then what are you are you
expecting from other's in Open Source project's.
Are the persons working in Open Source projects waiting to full-fill your
requirement ?

Please try to post this kind of question in User's mailing list.
As dev list is for framework developement.

Hey friends what will you say to this person ?
Do you all have luxury of time ?

On 1/12/07, lhp001 <[hidden email]> wrote:

>
>
> Hi,
>
> I have to delete some product features and variants I added before i do a
> demo.  I customized an E-Commerce site and I don't have the luxury of
> spending time to write a script to delete all child foreign key
> dependencies.  Webtools is not allowing me to do the deletes due to so
> many
> dependencies.  The data I want to delete is not even part of an order; its
> just in the Catalog's product.
>
> Thanks!
> --
> View this message in context:
> http://www.nabble.com/Script-to-delete-a-product-and-all-references-tf2962768.html#a8289423
> Sent from the OFBiz - Dev mailing list archive at Nabble.com.
>
>
--
Regards
Alex D. Fleming
Reply | Threaded
Open this post in threaded view
|

Re: Script to delete a product and all references

lhp001
In reply to this post by lhp001
For now I'm using SQLyog and manually deleting entities.  Its trial and error, but at least it gives me the name of the constraint that I have to delete first.  It would be great to have a delete feature that users could use if they made a mistake entering something.   If anyone has code to share, pass it on.
Reply | Threaded
Open this post in threaded view
|

Re: Script to delete a product and all references

lhp001
In reply to this post by Alex D. Fleming-2
No need to be so rude!

I'm new to this and have a next to impossible deadline.  I was just asking if anyone already had a script that would do this so I could save some time.  btw, I no longer need the script.  Going forward, I will not post to this forum anymore because I feel very insulted by your rudeness.  No need to respond, I've set my email to automatically filter out any responses from this forum.