We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d54a68a commit 44f3dfaCopy full SHA for 44f3dfa
tabpy/tabpy_server/handlers/endpoint_handler.py
@@ -115,13 +115,11 @@ def delete(self, name):
115
116
# delete files
117
if endpoint_info["type"] != "alias":
118
- query_path = get_query_object_path(
+ delete_path = get_query_object_path(
119
self.settings["state_file_path"], name, None
120
)
121
- staging_path = query_path.replace("/query_objects/", "/staging/endpoints/")
122
try:
123
- yield self._delete_po_future(query_path)
124
- yield self._delete_po_future(staging_path)
+ yield self._delete_po_future(delete_path)
125
except Exception as e:
126
self.error_out(400, f"Error while deleting: {e}")
127
self.finish()
0 commit comments