Code Assist MCP for Microsoft SharePoint

Build 25.0.9540

DeleteAttachment

SharePoint リストアイテムから添付ファイルを削除します。ファイルストレージを管理し、古い添付ファイルや不要な添付ファイルを削除するのに役立ちます。

Stored Procedure-Specific Information

The DeleteAttachment stored procedure deletes an attachment from a list item in SharePoint. The URL parameter specifies the full URL to the attachment, and the List parameter specifies the list name.

To execute this procedure, enter:

EXEC DeleteAttachment URL = 'https://mysite.sharepoint.com/Lists/Test List 1/Attachments/5/Test Document 2.txt', List = 'Test List 1';

Input

Name Type Required Description
URL String True 削除される添付ファイルの完全URL。例:'https://company.sharepoint.com/sites/documents/attachment1.jpg'。
List String False 添付ファイルが保存されているSharePoint リストの名前。例:'ProjectFiles'。

Result Set Columns

Name Type Description
Success Boolean 削除操作が成功したかどうかを示します。添付ファイルの削除に成功した場合は'true' を、失敗した場合は'false' を返します。

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 25.0.9540