package document import ( "context" "forge.cadoles.com/arcad/edge/pkg/storage" "github.com/pkg/errors" ) type DeleteDocumentArgs struct { Collection string DocumentID storage.DocumentID } type DeleteDocumentReply struct { } func (s *Service) DeleteDocument(ctx context.Context, args DeleteDocumentArgs, reply *DeleteDocumentReply) error { if err := s.store.Delete(ctx, args.Collection, args.DocumentID); err != nil { return errors.WithStack(err) } *reply = DeleteDocumentReply{} return nil }