diff --git a/tabpy/tabpy_server/handlers/endpoint_handler.py b/tabpy/tabpy_server/handlers/endpoint_handler.py index 64b964cf..d7f45f43 100644 --- a/tabpy/tabpy_server/handlers/endpoint_handler.py +++ b/tabpy/tabpy_server/handlers/endpoint_handler.py @@ -115,13 +115,11 @@ def delete(self, name): # delete files if endpoint_info["type"] != "alias": - query_path = get_query_object_path( + delete_path = get_query_object_path( self.settings["state_file_path"], name, None ) - staging_path = query_path.replace("/query_objects/", "/staging/endpoints/") try: - yield self._delete_po_future(query_path) - yield self._delete_po_future(staging_path) + yield self._delete_po_future(delete_path) except Exception as e: self.error_out(400, f"Error while deleting: {e}") self.finish()