Deleted document was being showed on the site.

Delete method was deleting the document node, but the document was still appearing on the site.