# Delete Web
Deletes a SharePoint web (subsite) by processing rows from an Excel file. When targeting by matter code, also removes the corresponding entries from the matter list and My Matters list.
Filename pattern: filename must contain deleteweb (case-insensitive).
Example: 20240115 deleteweb cleanup.xlsx
# Columns
| Name | Required | Description |
|---|---|---|
| Url / WebUrl / SiteUrl | Conditional | Server-relative URL of the web to delete. Required when MatterCode is not provided. |
| MatterCode | Conditional | Matter code used to resolve the site URL from the matter list. Required when Url is not provided. |
| ClientCode | No | Client code used together with MatterCode to identify the matter. |
Either Url or MatterCode must be provided. There is no recycle-bin option — deletion is always permanent.
# Behavior
Permanently deletes the resolved web. When targeting by MatterCode, the handler also removes the corresponding entries from the Matter list and My Matters list.
# Related links
- Delete Site Collection handler — delete an entire site collection