Hi Anjo -

I'm glad to hear that helped. I'm not entirely sure if you can use the
Django shell. It depends on whether you could access the resource proxy
model from the shell because you would need to call the proxy model's
delete method. I may look into trying that when I get a chance.

There is a management command for removing all resources. Unfortunately you
can't specify which types of resources you want to delete. There is a
ticket to allow a user to specify deletion of a specific model, but I'm not
sure when that will get resolved.

Thanks,

Cyrus

On Mon, Apr 23, 2018 at 11:01 AM, Anjo Weichbrodt <anjo.weichbr...@gmail.com
> wrote:

> Hi Cyrus,
>
> Thanks a lot for your help!
> It was indeed that I still had instances related to the model.
> Deleting them was cumbersome but it worked.
>
> Is there a possibilities to delete the instances in the Django shell?
>
> Thanks,
> Anjo
>
> On Friday, April 20, 2018 at 5:20:49 PM UTC-4, Cyrus Hiatt wrote:
>>
>> Hi Anjo -
>>
>> I suspect you have one or more resource instances associated with your
>> model. You can check if you go to the search page and search on the
>> resource model you are trying to delete.  If any show in the search
>> results, you will have to delete those instances before you can delete your
>> model.
>>
>> If that is indeed the problem, we should probably provide an alert
>> letting you know that you can't delete that model rather than letting the
>> model appear deleted only to reappear later.
>>
>> Thanks,
>>
>> Cyrus
>>
>>
>> On Fri, Apr 20, 2018 at 11:47 AM, Anjo Weichbrodt <anjo.we...@gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>>  I would like  to delete some resource models in the Arches designer.
>>> Clicking on <manage> ---> <delete>  would take away initially the
>>> resource model from the list, but up on refreshing it would come back again.
>>> What am I missing?
>>>
>>> Thanks,
>>> Anjo
>>>
>>> --
>>> -- To post, send email to arches...@googlegroups.com. To unsubscribe,
>>> send email to archesprojec...@googlegroups.com. For more information,
>>> visit https://groups.google.com/d/forum/archesproject?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Arches Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to archesprojec...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> -- To post, send email to archesproject@googlegroups.com. To unsubscribe,
> send email to archesproject+unsubscr...@googlegroups.com. For more
> information, visit https://groups.google.com/d/forum/archesproject?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Arches Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to archesproject+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to