I'm using GeoServer REST API to create a layer from a shapefile. That shapefile needs to be updated on a regular basis. Since there is no replace function on the REST API, I'm trying to delete the layer, replace the files and then recreate the layer with the new shapefile. pretty much like the answer at Uploading shapefile to GeoServer using cURL and replace file?
The problem I´m facing is that i´m receiving a 403 Forbidden message when I try to delete the layer. Since I have no problems publishing and editing layers I guess it is a security problem but have no clue of where I must change such security features.
The cURL command I´m sending is:
curl -v -u user:pass -XDELETE -H http://localhost:8080/geoserver/rest/layers/LayerName.xml
Sucth request gives me:
http/1.1 403 Forbidden