CIPP icon

CIPP

Interact with CIPP API

Actions129

Overview

This node operation removes an Intune script from a specified tenant in Microsoft Intune. It is useful for administrators who need to manage and clean up Intune scripts by deleting scripts that are no longer needed or relevant. For example, if a script was deployed for a temporary task or testing, this operation can be used to remove it from the tenant environment.

Use Case Examples

  1. Removing a deprecated Intune script from a tenant to maintain a clean and organized script repository.
  2. Deleting a script that was mistakenly uploaded or is no longer applicable to the current device management policies.

Properties

Name Meaning
Tenant Filter Specifies the default .onmicrosoft.com tenant name to identify the target tenant for the script removal.
Script ID The unique identifier of the Intune script to be removed from the tenant.
Request Options Advanced HTTP request options such as batching, SSL certificate validation, proxy settings, and timeout configuration to customize the API request behavior.

Output

JSON

  • success - Indicates whether the script removal operation was successful.
  • message - Provides additional information or status message about the removal operation.

Dependencies

  • Requires authentication credentials to access the Intune API, typically an API key or OAuth token.

Troubleshooting

  • Ensure the Script ID is correct and exists in the specified tenant; an incorrect ID will cause the removal to fail.
  • Verify that the tenant filter matches the correct .onmicrosoft.com tenant name to avoid targeting the wrong tenant.
  • Check network settings if using a proxy or if SSL issues occur; enabling 'Ignore SSL Issues' may help in some cases but is insecure.
  • Timeout errors may occur if the server is slow to respond; increasing the timeout setting can help.

Discussion