(self, request:Request, name=None, format=None)
return Response(status=status.HTTP_204_NO_CONTENT)
Delete a key-value store datastore for the client.

        Must be a super user to perform.
Delete a key-value store datastore for the client.
Delete a key - value store datastore for the client .
def delete(self, request:Request, name=None, format=None) -> Response:
        """Delete a key-value store datastore for the client.

        Must be a super user to perform.
        """
        if not request.user.is_superuser:
            raise PermissionDenied('Only super users can delete datastores.')
        datastore = get_object_or_404(ClientDatastore, name=name)
        ClientData.objects.filter(datastore=datastore).delete()
        datastore.delete()
        return Response(status=status.HTTP_204_NO_CONTENT)
def delete ( self , request : Request , name = None , format = None ) -> Response : if not request . user . is_superuser : raise PermissionDenied ( 'Only super users can delete datastores.' ) datastore = get_object_or_404 ( ClientDatastore , name = name ) ClientData . objects . filter ( datastore = datastore ) . delete ( ) datastore . delete ( ) return Response ( status = status . HTTP_204_NO_CONTENT )