We're updating the issue view to help you get more done. 

Add a purge="metadata|all" parameter to the structured coverage granules removal REST endpoint

Description

Rigth now it's possible to remove granules from a image mosaic by specifying a filter on this part of the REST API:
http://docs.geoserver.org/latest/en/api/#/1.0.0/structuredcoverages.yaml

However, that simply un-registers the granules from the mosaic. Add a purge parameter to the call allowing to:

  • Remove the file metadata (purge=metadata), in particular whatever information was collected for the file (e.g., the NetCDF sidecar indexes)

  • Remove the data as well, using "purge=all", if it fell orphan (no more records in the mosaic index pointing to that file)

Environment

None

Status

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

None

Fix versions

Affects versions

None

Components

Priority

Medium