dosubot[bot] commented on issue #2761:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2761#issuecomment-2862254895

   <!-- Greeting -->
   Hello @JonSmall! I'm here to help you with any bugs or questions you have 
while you wait for a human maintainer. If you need assistance, feel free to ask!
   
   <!-- Answer -->
   要在 Hubble 1.5.0 中删除标记为“当前属性数据正在使用中”的顶点或属性,可以使用 `delete` 方法,并将 `skip_using` 
参数设置为 `true`。这样,即使属性被标记为正在使用,也可以继续删除。
   
   以下是相关代码片段:
   
   ```java
   @DeleteMapping
   public void delete(@PathVariable("connId") int connId,
                      @RequestParam List<String> names,
                      @RequestParam(name = "skip_using",
                                    defaultValue = "false")
                      boolean skipUsing) {
       for (String name : names) {
           this.service.checkExist(name, connId);
           if (this.service.checkUsing(name, connId)) {
               if (skipUsing) {
                   continue;
               } else {
                   throw new ExternalException("schema.propertykey.in-using",
                                               name);
               }
           }
           this.service.remove(name, connId);
       }
   }
   ```
   
   通过将 `skip_using` 设置为 
`true`,方法将跳过对属性是否正在使用的检查,并继续进行删除操作<sup>[[1]](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-hubble/hubble-be/src/main/java/org/apache/hugegraph/controller/schema/PropertyKeyController.java)</sup>。
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   
   ---
   <sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/a978eb6a-d522-4674-8647-f0b097bc57b0?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/a978eb6a-d522-4674-8647-f0b097bc57b0?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/a978eb6a-d522-4674-8647-f0b097bc57b0?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/a978eb6a-d522-4674-8647-f0b097bc57b0?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/a978eb6a-d522-4674-8647-f0b097bc57b0?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/a978eb6a-d522-4674-8647-f0b097bc57b0?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/a978eb6a-d522-4674-8647-f0b097bc57b0?feedback_type=other)</sup>
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to