added delete circuit functionality.