added delete_all option
fixed bug for trying to click delete button when not present