delete Entity
See deleteEntity_(EntityValue, HttpHeaders?, RequestOptions?).
Parameters
entity
Entity parameter.
See deleteEntity_(EntityValue, HttpHeaders?, RequestOptions?).
Parameters
entity
Entity parameter.
headers
Headers parameter.
Delete an entity from the target system.
- Example using proxy classes:
open fun deleteEntityExample(): kotlin.Unit { val service = this.service; val query = DataQuery().top(1).selectKey() .filter(Customer.contactName.equal("William Riker")); val customer = service.getCustomer(query); service.deleteEntity(customer); }
- Example using dynamic API:
open fun deleteEntityExample(): kotlin.Unit { val service = this.service; val customersEntitySet = service.getEntitySet("Customers"); val customerEntityType = customersEntitySet.entityType; val contactNameProperty = customerEntityType.getProperty("ContactName"); val query = DataQuery().top(1).selectKey().from(customersEntitySet) .filter(contactNameProperty.equal("William Riker")); val customer = service.executeQuery(query).getRequiredEntity(); service.deleteEntity(customer); }
Parameters
entity
Entity to be deleted.
headers
(nullable) Optional request-specific headers.
options
(nullable) Optional request-specific options.