aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/http/methods/delete/index.html
blob: a5bf20d4dc7155b651c57057bad9302538007b37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
title: DELETE
slug: Web/HTTP/Methods/DELETE
tags:
  - HTTP
  - HTTP リクエストメソッド
  - HTTPメソッド
  - Reference
  - リクエストメソッド
translation_of: Web/HTTP/Methods/DELETE
---
<div>{{HTTPSidebar}}</div>

<p><strong>HTTP の <code>DELETE</code> リクエストメソッド</strong> は特定のリソースを削除します。</p>

<table class="properties">
 <tbody>
  <tr>
   <th scope="row">リクエストの本文</th>
   <td></td>
  </tr>
  <tr>
   <th scope="row">成功時のレスポンスの本文</th>
   <td></td>
  </tr>
  <tr>
   <th scope="row">{{Glossary("Safe","安全性")}}</th>
   <td>なし</td>
  </tr>
  <tr>
   <th scope="row">{{Glossary("Idempotent","べき等性")}}</th>
   <td>あり</td>
  </tr>
  <tr>
   <th scope="row">{{Glossary("Cacheable","キャッシュ")}}</th>
   <td>不可</td>
  </tr>
  <tr>
   <th scope="row"><a href="/ja/docs/Web/Guide/HTML/Forms">HTML フォーム</a>での使用</th>
   <td>不可</td>
  </tr>
 </tbody>
</table>

<h2 id="Syntax" name="Syntax">構文</h2>

<pre class="syntaxbox">DELETE /file.html HTTP/1.1
</pre>

<h2 id="Example" name="Example"></h2>

<h3 id="Request" name="Request">リクエスト</h3>

<pre>DELETE /file.html HTTP/1.1</pre>

<h3 id="Responses" name="Responses">レスポンス</h3>

<p><code>DELETE</code> メソッドが正常に受け付けられた場合、可能性があるレスポンスステータスコードがいくつかあります。</p>

<ul>
 <li>{{HTTPStatus("202")}} (<code>Accepted</code>) は、処理が成功する可能性は高いが、まだ成立はしていない場合のステータスコード。</li>
 <li>{{HTTPStatus("204")}} (<code>No Content</code>) は、処理は完了しておりかつ、さらなる情報が提供されない場合のステータスコード。</li>
 <li>{{HTTPStatus("200")}} (<code>OK</code>) は、 処理は完了しておりかつ、レスポンスメッセージにステータスを表す表現を含んでいる場合のステータスコード。</li>
</ul>

<pre>HTTP/1.1 200 OK
Date: Wed, 21 Oct 2015 07:28:00 GMT

&lt;html&gt;
  &lt;body&gt;
    &lt;h1&gt;File deleted.&lt;/h1&gt;
  &lt;/body&gt;
&lt;/html&gt;</pre>

<h2 id="Specifications" name="Specifications">仕様書</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">仕様書</th>
   <th scope="col">題名</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{RFC("7231", "DELETE", "4.3.5")}}</td>
   <td>Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>

<p class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</p>

<p>{{Compat("http.methods.DELETE")}}</p>

<h2 id="See_also" name="See_also">関連情報</h2>

<ul>
 <li>HTTP ステータス: {{HTTPStatus("200")}}, {{HTTPStatus("202")}}, {{HTTPStatus("204")}}</li>
</ul>