Fix bad $.ajax call.
Fix delete resource.
Add functional clear plan.