Deregistering stake pool ERROR StakePoolNotRegisteredOnKeyPOOL

Hi I am following this guide 13. Retiring a Stake Pool — cardano-node Documentation 1.0.0 documentation to deregister our POOL and withdraw the 500 ADA.

But when I try to submit the transaction I get this Error:
Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [LedgerFailure (DelegsFailure (DelplFailure (PoolFailur
e (StakePoolNotRegisteredOnKeyPOOL (KeyHash “5755a64c897457bb7a079593689e3c32d6c7b93c9378a659f2cfae32”)))))])

Am I doing something wrong here?
1. I create a pool-deregistration.cert for next EPOCH now its 263 so next is 264
cardano-cli stake-pool deregistration-certificate
–cold-verification-key-file cold.vkey
–epoch 264
–out-file pool-deregistration.cert

2. I create tx.draft


cardano-cli transaction build-raw
–tx-in 0e30b1755d857a5d3b5d612a0064b0e8915f2312c09f40a5b07404460ee4f03b#0
–tx-out $(cat payment.addr)+0
–invalid-hereafter 0
–fee 0
–out-file tx.draft
–certificate-file pool-deregistration.cert

3. Calculate the FEE
178569 Lovelace

expr 10000000 - 178569
9821431

4. Find out current slot and add 1000 to --invalid-hereafter

I build the transaction

cardano-cli transaction build-raw
–tx-in 0e30b1755d857a5d3b5d612a0064b0e8915f2312c09f40a5b07404460ee4f03b#0
–tx-out $(cat payment.addr)+9821431
–invalid-hereafter 28333070
–fee 178569
–out-file tx.raw
–certificate-file pool-deregistration.cert

5. I sign the transaction
cardano-cli transaction sign
–tx-body-file tx.raw
–signing-key-file payment.skey
–signing-key-file cold.skey
–mainnet
–out-file tx.signed

6. I submit the transaction
cardano-cli transaction submit
–tx-file tx.signed
–mainnet

Am I missing something here?

Hi!

have you tried to verify first that the pool is registered?
https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/register_stakepool.html#verify-that-your-stake-pool-registration-was-successful