fix and change bucket delete api hook