monkeyDluffy6017 commented on code in PR #9810:
URL: https://github.com/apache/apisix/pull/9810#discussion_r1261871633


##########
docs/en/latest/admin-api.md:
##########
@@ -103,6 +103,33 @@ deployment:
 
 This will find the environment variable `ADMIN_KEY` first, and if it does not 
exist, it will use `edd1c9f034335f136f87ad84b625c8f1` as the default value.
 
+### Force Delete
+
+By default, the Admin API checks for references between resources and will 
refuse to delete resources in use.
+
+You can make a force deletion by adding the request header `X-Force-Delete: 
true` to the delete request, for example:

Review Comment:
   If you put the configuration into the uri_args, you don't need to add this 
following code
   ```
           if method == "delete" then
               if not req_body then
                   req_body = {}
               end
               req_body._force_delete = ngx.req.get_headers()["X-Force-Delete"]
           end
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to