Create delete functionality.