Revert d2a46b4..75851e8

This rolls back to commit d2a46b44c11b6c6afd4ccce5ac9557defbce6116.
add delete functionalities and querying ability

del-doc!!, del-docs!!, find-docs could use :and :or keyword