delete actions properly from layer