Implement document delete functionality.