Update clear attribute post for use script directly