Use DeleteCustomActionType with a CLI - AWS SDK Code Examples

There are more AWS SDK examples available in the AWS Doc SDK Examples GitHub repo.

Use DeleteCustomActionType with a CLI

The following code examples show how to use DeleteCustomActionType.

CLI
AWS CLI

To delete a custom action

This example deletes a custom action in AWS CodePipeline by using an already-created JSON file (here named DeleteMyCustomAction.json) that contains the action type, provider name, and version number of the action to be deleted. Use the list-action-types command to view the correct values for category, version, and provider.

Command:

aws codepipeline delete-custom-action-type --cli-input-json file://DeleteMyCustomAction.json

JSON file sample contents:

{ "category": "Build", "version": "1", "provider": "MyJenkinsProviderName" }

Output:

None.
PowerShell
Tools for PowerShell

Example 1: This example deletes the specified custom action. The command will prompt for confirmation before proceeding. Add the -Force parameter to delete the custom action without a prompt.

Remove-CPCustomActionType -Category Build -Provider MyBuildProviderName -Version 1