Delete a file from the live response library
Applies to:
Important
Some information in this article relates to prereleased product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Want to experience Microsoft Defender for Endpoint? Sign up for a free trial.
Note
If you are a US Government customer, please use the URIs listed in Microsoft Defender for Endpoint for US Government customers.
Tip
For better performance, you can use server closer to your geo location:
- api-us.securitycenter.microsoft.com
- api-eu.securitycenter.microsoft.com
- api-uk.securitycenter.microsoft.com
- api-au.securitycenter.microsoft.com
API description
Delete a file from live response library.
Limitations
- Rate limitations for this API are 100 calls per minute and 1500 calls per hour.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Get started.
Permission type | Permission | Permission display name |
---|---|---|
Application | Library.Manage | Manage live response library |
Delegated (work or school account) | Library.Manage | Manage live response library |
HTTP request
DELETE https://api.securitycenter.microsoft.com/api/libraryfiles/{fileName}
Request headers
Name | Type | Description |
---|---|---|
Authorization | String | Bearer<token>. Required. |
Request body
Empty
Response
If file exists in library and deleted successfully 204 No Content.
If specified file name was not found 404 Not Found.
Example
Request
Here is an example of the request.
DELETE https://api.securitycenter.microsoft.com/api/libraryfiles/script1.ps1
Related topic
Tip
Do you want to learn more? Engage with the Microsoft Security community in our Tech Community: Microsoft Defender for Endpoint Tech Community.
Feedback
Submit and view feedback for