github.com/weaviate/weaviate@v1.24.6/usecases/schema/delete_property.go (about) 1 // _ _ 2 // __ _____ __ ___ ___ __ _| |_ ___ 3 // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ 4 // \ V V / __/ (_| |\ V /| | (_| | || __/ 5 // \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| 6 // 7 // Copyright © 2016 - 2024 Weaviate B.V. All rights reserved. 8 // 9 // CONTACT: hello@weaviate.io 10 // 11 12 package schema 13 14 import ( 15 "context" 16 "fmt" 17 18 "github.com/weaviate/weaviate/entities/models" 19 ) 20 21 // DeleteClassProperty from existing Schema 22 func (m *Manager) DeleteClassProperty(ctx context.Context, principal *models.Principal, 23 class string, property string, 24 ) error { 25 err := m.Authorizer.Authorize(principal, "update", "schema/objects") 26 if err != nil { 27 return err 28 } 29 30 return fmt.Errorf("deleting a property is currently not supported, see " + 31 "https://github.com/weaviate/weaviate/issues/973 for details.") 32 // return m.deleteClassProperty(ctx, class, property, kind.Action) 33 }