Deletes features from a table using a list of primary keys with an optional commit interval. Each feature must have an ID (primary key) which is used to match it with the feature in the table. The response contains the number of features that were successfully deleted.
The following table lists the request and response messages for the deleteByPrimaryKey operation.
Click on a message name to get more information about the message.
Example for deleting features in an Oracle table by primary key. The FeatureKeyList defines the values to be deleted:
<?xml version="1.0"?> <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns4="http://www.mapinfo.com/midev/service/feature/v1"> <S:Header/> <S:Body> <ns4:DeleteByPrimaryKeyRequest table="/Samples/OraWorld" commitInterval="50"> <ns4:FeatureKeyList> <ns4:key>1</ns4:key> <ns4:key>2</ns4:key> <ns4:key>3</ns4:key> </ns4:FeatureKeyList> </ns4:DeleteByPrimaryKeyRequest> </S:Body> </S:Envelope>