delete functionality for phases and reasons