Delete Minecraft pe inventory at the push of a button?

ca
2

I see almost every Minecraft pe player delete their inventory at the push of a button

Look forward to answers

de

I don't know about bedrock; only for Java

if you want to empty your inventory you can use the / clear command

ca

Yes, I know the command / clear but thank you anyway