add delete-slice action that is used by the interface.