If you want to resign from a contract position, make sure to check your contract first. Have a conversation with your boss or line manager about your intention to leave. If your contract does not allow you to leave immediately propose a renegotiation of your contract instead of quitting right away.