Setting up functions to delete all alerts

For #281