add delete function on schedule