Hi Joe, There’s no way to permanently delete it. You should probably just reuse it.
We have an API resource, https://www.reviewboard.org/docs/manual/dev/webapi/2.0/resources/validation/, that can validate a diff prior to upload, so that you can catch any errors without creating a review request. This requires RB 2.0. Christian -- Christian Hammond - christ...@beanbaginc.com Review Board - http://www.reviewboard.org Beanbag, Inc. - http://www.beanbaginc.com On July 23, 2014 at 6:30:30 AM, Joe (jothira...@gmail.com) wrote: Hello, In our company, we have a custom source code packaging format. So we have written a wrapper above rbtools, based on this link https://www.reviewboard.org/docs/rbtools/dev/api/tutorial/ In our python script, we use the following snippet to create and upload a review request: f = open("path/to/diff.txt", mode="r") diff_contents = f.read() f.close() review_request.get_diffs().upload_diff(diff_contents) The problem here is, when we upload a diff for which the file path doesn’t exist, then it throws an error The file was not found in the repository (HTTP 400, API Error 207) However, an empty draft with no diff is generated in the review board site. Is there a way to avoid this? Or permanently delete this draft (we don’t want to discard it, but permanently delete it) Best Regards, Joe. -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.