ADO.NET Provider for Microsoft SharePoint

Build 25.0.9540

DeleteDocument

SharePoint ドキュメントライブラリからドキュメントを削除します。コンテンツのライフサイクル管理や、古くなったドキュメントの確実な削除に役立ちます。

Stored Procedure-Specific Information

The DeleteDocument stored procedure deletes a document from a SharePoint document library. The Library parameter specifies the document library name, and the Path parameter specifies the relative path to the document within that library.

To execute this procedure, enter:

EXEC DeleteDocument Library = 'Documents', Path = 'Test Folder 1/Test Document 3.txt';

Input

Name Type Required Description
Library String True ファイルまたはフォルダが保存されているSharePoint サーバー上のドキュメントライブラリの名前。例:'Shared Documents'。
Path String True 指定されたドキュメントライブラリ内で削除されるファイルまたはフォルダの相対パス。例:'ProjectFiles/Report.pdf' または'ProjectFiles/OldFolder/'。

Result Set Columns

Name Type Description
Success Boolean 削除操作が成功したかどうかを示します。ドキュメントまたはフォルダの削除に成功した場合は'true' を、失敗した場合は'false' を返します。

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