Skip to content

Commit

Permalink
Update delete function (#125)
Browse files Browse the repository at this point in the history
Co-authored-by: Francis Odhiambo Otieno <{ID}+{f-odhiambo}@users.noreply.github.com>
Co-authored-by: Sebastian <36365043+SebaMutuku@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 2, 2024
1 parent 774efea commit ab1b2a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cleaner/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ def main(resource_type, parameter, value, batch_size, expunge, cascade, log_leve
+ "&_count="
+ str(batch_size)
)
delete_resources(resource_url, resource_type)
if not cascade:
delete_resources(resource_url, resource_type)
if expunge:
expunge_url = config.fhir_base_url + "/" + resource_type + "/$expunge"
expunge_resources(expunge_url)
Expand Down

0 comments on commit ab1b2a4

Please sign in to comment.