

支援終止通知：2025 年 11 月 13 日， AWS 將停止對 Amazon Elastic Transcoder 的支援。2025 年 11 月 13 日之後，您將無法再存取 Elastic Transcoder 主控台或 Elastic Transcoder 資源。

如需轉換至 的詳細資訊 AWS Elemental MediaConvert，請造訪此[部落格文章](https://aws.amazon.com/blogs/media/how-to-migrate-workflows-from-amazon-elastic-transcoder-to-aws-elemental-mediaconvert/)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 刪除管道
<a name="delete-pipeline"></a>

**Topics**
+ [描述](#delete-pipeline-description)
+ [請求](#delete-pipeline-requests)
+ [回應](#delete-pipeline-responses)
+ [錯誤](#delete-pipeline-response-errors)
+ [範例](#delete-pipeline-example)

## 描述
<a name="delete-pipeline-description"></a>

欲刪除管道，請將 DELETE 請求傳送到 `/2012-09-25/pipelines/pipelineId` 資源。只有未曾用過或目前未使用中 (不含作業中任務) 的管道才可刪除。若管道目前正在使用中，`Delete Pipeline` 會回傳錯誤。

## 請求
<a name="delete-pipeline-requests"></a>

### 語法
<a name="delete-pipeline-request-syntax"></a>

```
DELETE /2012-09-25/pipelines/pipelineId HTTP/1.1
Content-Type: charset=UTF-8
Accept: */*
Host: elastictranscoder.Elastic Transcoder endpoint.amazonaws.com:443
x-amz-date: 20130114T174952Z
Authorization: AWS4-HMAC-SHA256
               Credential=AccessKeyID/request-date/Elastic Transcoder endpoint/elastictranscoder/aws4_request,
               SignedHeaders=host;x-amz-date;x-amz-target,
               Signature=calculated-signature
```

### 請求參數
<a name="delete-pipeline-request-parameters"></a>

此操作接受下列請求參數。

**pipelineId**  
您要刪除之管道的識別碼。

### 請求標頭
<a name="delete-pipeline-request-headers"></a>

此操作僅使用所有操作常見的請求標頭。如需常見請求標頭的資訊，請參閱 [HTTP 標頭內容](making-http-requests.md#http-request-header)。

### 請求主體
<a name="delete-pipeline-request-body"></a>

此操作沒有請求內文。

## 回應
<a name="delete-pipeline-responses"></a>

### 語法
<a name="delete-pipeline-response-syntax"></a>

```
Status: 202 Accepted
x-amzn-RequestId: c321ec43-378e-11e2-8e4c-4d5b971203e9
Content-Type: application/json
Content-Length: number of characters in the response
Date: Mon, 14 Jan 2013 06:01:47 GMT

{
   "Success":"true"
}
```

### 回應標頭
<a name="delete-pipeline-response-headers"></a>

此操作僅使用大部分回應常見的回應標頭。如需常見回應標頭的資訊，請參閱 [HTTP 回應](making-http-requests.md#http-response-header)。

### 回應內文
<a name="delete-pipeline-response-elements"></a>

回應內文包含以下 JSON 物件。

**Success**  
若成功刪除管道，則 `Success` 的值為 `true`。

## 錯誤
<a name="delete-pipeline-response-errors"></a>

如需 Elastic Transcoder 例外狀況和錯誤訊息的相關資訊，請參閱[處理 Elastic Transcoder 中的錯誤](error-handling.md)。

## 範例
<a name="delete-pipeline-example"></a>

下列範例請求會刪除管道 1111111111111-abcde1。

### 請求範例
<a name="delete-pipeline-examples-sample-request"></a>

```
DELETE /2012-09-25/pipelines/1111111111111-abcde1 HTTP/1.1
Content-Type: charset=UTF-8
Accept: */*
Host: elastictranscoder.Elastic Transcoder endpoint.amazonaws.com:443
x-amz-date: 20130114T174952Z
Authorization: AWS4-HMAC-SHA256
               Credential=AccessKeyID/request-date/Elastic Transcoder endpoint/elastictranscoder/aws4_request,
               SignedHeaders=host;x-amz-date;x-amz-target,
               Signature=calculated-signature
```

### 回應範例
<a name="delete-pipeline-examples-sample-response"></a>

```
Status: 202 Accepted
x-amzn-RequestId: c321ec43-378e-11e2-8e4c-4d5b971203e9
Content-Type: application/json
Content-Length: number of characters in the response
Date: Mon, 14 Jan 2013 06:01:47 GMT

{
   "Success":"true"
}
```