[ckan-dev] How to remove a field that is no longer valid

Ian Ward ian at excess.org
Tue Nov 17 19:33:32 UTC 2015


On Tue, Nov 17, 2015 at 2:22 PM, Brown, Mathew GCPE:EX
<Mathew.Brown at gov.bc.ca> wrote:
> I’m going a bunch of edits to records using the ckanapi and one of them involves changing the ‘resource_status’ from ‘obsolete’ to ‘destroyed’. This means the ‘replacement_record’ field is no longer valid (though it was required when the status was obsolete). When I remove it using the highlighted line below, for some reason when I do a package_update, the field is still there.
>
> Any idea how I remove a field from the record and then update the record?

I'm pretty sure your problem is related to the way the ckanext-bcgov
extension is storing extras. This isn't an issue in CKAN itself.

Ian



More information about the ckan-dev mailing list