Delete Method (ADOX Collections)

Removes an object from a collection.

Syntax


Collection.Delete Name  

Parameters

Name
A Variant that specifies the name or ordinal position (index) of the object to delete.

Remarks

An error will occur if the Name does not exist in the collection.

For Tables and Users collections, an error will occur if the provider does not support deleting tables or users, respectively. For Procedures and Views collections, Delete will fail if the provider does not support persisting commands.

Applies To

Columns Collection (ADOX) Groups Collection (ADOX) Indexes Collection (ADOX)
Keys Collection (ADOX) Procedures Collection (ADOX) Tables Collection (ADOX)
Users Collection (ADOX) Views Collection (ADOX)

See Also

Procedures Delete Method Example (VB)
Views Delete Method Example (VB)