completed delete functionality