---
eip: 6
label: EIP-6
title: Renaming SUICIDE opcode
status: Final
type: Standards Track
category: Interface
created: 2015-11-22
official: https://eips.ethereum.org/EIPS/eip-6
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-6.md
canonical: https://eips.huatuo.xyz/eip-6/
lang: en
tldr: "Renamed the EVM's SUICIDE opcode to SELFDESTRUCT in Ethereum's programming languages, a purely cosmetic change made out of respect for people affected by suicide and depression."
tags: [evm, opcode, naming, selfdestruct]
---

# EIP-6: Renaming SUICIDE opcode

> The solution proposed in this EIP is to change the name of the SUICIDE opcode in Ethereum programming languages with SELFDESTRUCT.

**TL;DR:** Renamed the EVM's SUICIDE opcode to SELFDESTRUCT in Ethereum's programming languages, a purely cosmetic change made out of respect for people affected by suicide and depression.

## What problem does it solve?

The EVM has an instruction (opcode `0xff`) that deletes a contract and sends its remaining ether to a chosen address. In Ethereum's early days it was called `SUICIDE`, and Solidity and Serpent exposed it under that name.

EIP-6 argues that the word is needlessly painful for developers who live with depression or have lost someone to suicide. A security audit by Least Authority had also recommended a less loaded name such as "self-destruct". Since Ethereum was young, renaming early was cheap.

## How it works

The change is at the language and tooling level, not in consensus:

- The opcode byte stays `0xff`, with the same gas cost and behavior. Nothing on-chain changes.
- `SELFDESTRUCT` was added to Solidity and Serpent as an **alias** of `SUICIDE`, rather than replacing it outright, so existing source code kept compiling.
- Documentation, disassemblers and clients gradually adopted the new name.

Because only the human-readable name changed, no hard fork was needed. This is why the EIP is in the "Interface" category rather than "Core".

## Sample code

Modern Solidity only knows `selfdestruct`. The old `suicide` alias was removed from the language long ago.

```solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

contract Closable {
    address payable public owner = payable(msg.sender);

    function close() external {
        require(msg.sender == owner, "not owner");
        // Opcode 0xff, once called SUICIDE.
        // Since EIP-6780 this only sends the ether unless the contract
        // was created in the same transaction.
        selfdestruct(owner);
    }
}
```

In a disassembly you will now see:

```
PUSH20 0x...owner
SELFDESTRUCT   // 0xff
```

## Things to know

- This proposal is Final, and it is one of the earliest EIPs. It changed names only: bytecode written before and after is identical.
- The opcode itself was later weakened. [EIP-6049](/eip-6049/) formally deprecated `SELFDESTRUCT`, and [EIP-6780](/eip-6780/) limited it so that it no longer deletes code or storage, except when called in the same transaction that created the contract. [EIP-4758](/eip-4758/) proposed to deactivate it fully, but it is Stagnant.
- Do not design new contracts around `selfdestruct` to "reset" or upgrade a contract. Use an upgradeable proxy or a migration pattern instead.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-6
