parameters: (self, request:Request, name=None, format=None)
return_statement: return Response(status=status.HTTP_204_NO_CONTENT)
docstring: Delete a key-value store datastore for the client.
  
          Must be a super user to perform.
docstring_summary: Delete a key-value store datastore for the client.
docstring_tokens: Delete a key - value store datastore for the client .
function: 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)
function_tokens: 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 )