MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / destroy

Method destroy

api/segments/views.py:217–221  ·  view source on GitHub ↗
(self, request: Request, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

215 return Response({"results": members, "next_cursor": next_cursor})
216
217 def destroy(self, request: Request, *args: Any, **kwargs: Any) -> Response:
218 segment = self.get_object()
219 author = AuthorData.from_request(request)
220 delete_segment(segment, author=author)
221 return Response(status=status.HTTP_204_NO_CONTENT)
222
223 @extend_schema(
224 request=CloneSegmentSerializer,

Callers

nothing calls this directly

Calls 3

from_requestMethod · 0.80
delete_segmentFunction · 0.70
get_objectMethod · 0.45

Tested by

no test coverage detected