You can't accidentally delete a pocket when there is still money in it. To delete a pocket, you always have to transfer the money to your main account or another pocket first.