Updated to fix deletion issue. Also fixed OPTIONS request issue.