# 配列の指定した位置の値を削除する(Array.removeAt) > 特定の位置にある要素を削除し、その要素を返します。 - カテゴリ:配列(arrays) - ブロック:配列 から0 番目の値を削除して返す - URL:https://makecode.minecraft-okinawa.com/reference/arrays/remove-at/ - Pythonでの名前:Array.remove_at - 公式データ取得日:2026-11-13 - 動作確認:確認待ち ## JavaScript ```javascript [""].removeAt(0) ``` ## Python ```python [""].remove_at(0) ``` ## 引数 | 名前 | 値 | 意味 | |---|---|---| | index | 数値 | | ## 使用例 ### The size of the array shrinks by one. The element is removed from the array at the position you want. All the other elements after it are moved (shifted) to down to the next lower position. So, an array that has the numbers 4, 5, 9, 3, 2 will be 4, 5, 3, 2 if 9 is removed from the array at index 2. It looks like this in blocks: ```javascript let myNumbers = [4, 5, 9, 3, 2] let item = myNumbers.removeAt(2) ``` ```python myNumbers = [4, 5, 9, 3, 2] item = myNumbers.remove_at(2) ``` ### Remove the most dangerous level of radiation from the list. ```javascript let radLevels = ["alpha", "beta", "gamma"] let level = radLevels.indexOf("gamma") let unzapped = radLevels.removeAt(level) ``` ```python radLevels = ["alpha", "beta", "gamma"] level = radLevels.index_of("gamma") unzapped = radLevels.remove_at(level) ``` ## 出典 - [MakeCode for Minecraft 公式リファレンス(Array.removeAt)](https://minecraft.makecode.com/reference/arrays/remove-at) 執筆:鈴木孝昌(現役プロジェクトマネージャー/マイクラカップ指導者)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)